Date.prototype mutable internal properties

Mark S. Miller erights at google.com
Fri Jul 1 18:01:15 PDT 2011


Thanks David,

Yes, this is important. The way I noticed it is that the same issue came up
for the FF implementation of WeakMaps <
https://bugzilla.mozilla.org/show_bug.cgi?id=656828>. I will be proposing
the to-be-fixed Mozilla API to the committee to become the new WeakMap
proposal -- making it more consistent with Map and Set. But not at the
upcoming meeting -- it's not on the agenda.

In the meantime, <
http://google-caja.googlecode.com/svn/trunk/src/com/google/caja/ses/repairES5.js>
repairs this and many other problems encountered in today's almost-ES5
implementations. Except for this issue with Date and WeakMap, all the other
repairs in that file are spec non-conformances. See the kludges list at <
http://code.google.com/p/google-caja/source/browse/trunk/src/com/google/caja/ses/repairES5.js#989>
for cross referencing between these repairs, various bug threads, and
Sputnik/test262 test names.


On Fri, Jul 1, 2011 at 12:28 PM, David Bruant <david.bruant at labri.fr> wrote:

> Hi,
>
> I just wanted to put on es-discuss the concern raised by Mark Miller [1]
> about mutable internal properties of Date.prototype and that it should
> be fixed in the next version of ECMAScript.
>
> David
>
> [1] http://code.google.com/p/google-caja/issues/detail?id=1362
>



-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110701/e7c101ef/attachment.html>


More information about the es-discuss mailing list