Frozen Date objects?

Brendan Eich brendan at
Wed Jul 17 12:41:08 PDT 2013

Domenic Denicola wrote:
> From: Anne van Kesteren [annevk at]
>> Is there a better way?
> ```
> <video>.startDate() !==<video>.startDate()
> ```

Using a method instead of a getter is better style where the result is 
generated on each call, but doesn't get at Anne's question.

IIRC Mark has thoughts about freezing of Date objects, since inability 
to freeze Date.prototype leaves a side channel.

(BTW, Anne's righteous != and your !== are equivalent per that invariant 
:=P. More significant, neither will work as wanted with reference-type 
objects such as Dates. But that no-value-type-for-Date issue is a 
different topic from the one at issue, I hope!)


More information about the es-discuss mailing list