Template site objects and WeakMap

Caitlin Potter caitpotter88 at gmail.com
Wed Jun 17 18:51:38 UTC 2015


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



More information about the es-discuss mailing list