Symbols, Protocols, Frames, and Versioning

Mark S. Miller erights at google.com
Fri Oct 5 08:23:14 PDT 2012


On Fri, Oct 5, 2012 at 7:11 AM, Sam Tobin-Hochstadt <samth at ccs.neu.edu>wrote:

>
> Note also that `Symbol.for` has some really weird behavior. For
> example, what does this evaluate to?
>
>     Symbol.for("x") instanceof Symbol
>
> That depends if someone has previously evaluated `Symbol.for("x")` in
> a different frame.



If this is true, then it is obviously a fatal problem with the whole
proposal, independent of all other issues. Do symbols have a [[Prototype]]
whose value is a Symbol.prototype?

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


More information about the es-discuss mailing list