Template site objects and WeakMap

Mark S. Miller erights at google.com
Wed Jun 17 19:21:47 UTC 2015


TypeError: Invalid value used as weak map key

Yes, already fixed on v8. Thanks.



On Wed, Jun 17, 2015 at 11:51 AM, Caitlin Potter <caitpotter88 at gmail.com>
wrote:

> The v8 bug referred to earlier in this thread was filed by Rick Waldron
> and fixed back in March, I think engines are on the same page with this —
> just FYI
>
> > On Jun 17, 2015, at 2:49 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
> >
> > On 6/17/15 2:35 PM, Mark S. Miller wrote:
> >> What do other browsers currently do?
> >
> > Firefox:
> >
> > > var w = new WeakMap(); var r = Symbol.for('foo'); w.set(r, true);
> > TypeError: r is not a non-null object
> >
> > WebKit nightly:
> >
> > > var w = new WeakMap(); var r = Symbol.for('foo'); w.set(r, true);
> > TypeError: Attempted to set a non-object key in a WeakMap
> >
> > Don't have a new enough IE to test with offhand.
> >
> > -Boris
> > _______________________________________________
> > es-discuss mailing list
> > es-discuss at mozilla.org
> > https://mail.mozilla.org/listinfo/es-discuss
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>



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


More information about the es-discuss mailing list