[Bug 27553] Support Symbol

# bugzilla at jessica.w3.org (3 years ago)

www.w3.org/Bugs/Public/show_bug.cgi?id=27553

Boris Zbarsky bzbarsky@mit.edu changed:

       What    |Removed                     |Added

             CC|                            |bzbarsky@mit.edu

--- Comment #1 from Boris Zbarsky bzbarsky@mit.edu ---

Which parts of this do we need in IDL?

Presumably we need to have a way for "SomeInterface.something" to be a well-known symbol (well-known in the sense that SomeInterface.something === otherWindow.SomeInterface.something), right?

Do we need anything else? Do we need the ability to put these symbols on Symbol instead of SomeInterface? (I'd say we don't want that, personally.)

Contact us to advertise here
# bugzilla at jessica.w3.org (3 years ago)

www.w3.org/Bugs/Public/show_bug.cgi?id=27553

--- Comment #2 from Anne annevk@annevk.nl ---

Only SomeInterface, Symbol is for TC39. (Although this will get messy of course once they adopt something from DOM again.)

# bugzilla at jessica.w3.org (3 years ago)

www.w3.org/Bugs/Public/show_bug.cgi?id=27553

--- Comment #3 from Boris Zbarsky bzbarsky@mit.edu ---

OK. So we could support syntax like so:

interface Foo { symbol xyz; }

which would make Foo.xyz a well-known symbol whose [[Description]] is "Foo.xyz", right?

Do we also need the ability to have symbol-named things on dictionaries or something?

# bugzilla at jessica.w3.org (2 years ago)

www.w3.org/Bugs/Public/show_bug.cgi?id=27553

Erik Arvidsson arv@google.com changed:

       What    |Removed                     |Added

             CC|                            |arv@google.com

--- Comment #4 from Erik Arvidsson arv@google.com ---

Should probably be:

interface Foo { static Symbol xyz; }

and then the rules for Symbol would have to define that all code realms need to share the Symbol xyz, just like ES6 defines the well known symbols: people.mozilla.org/~jorendorff/es6-draft.html#sec-well-known-symbols

# bugzilla at jessica.w3.org (4 days ago)

www.w3.org/Bugs/Public/show_bug.cgi?id=27553

Domenic Denicola d@domenic.me changed:

       What    |Removed                     |Added

             CC|                            |d@domenic.me
       Assignee|cam@mcc.id.au               |d@domenic.me
         Status|NEW                         |ASSIGNED

Want more features?

Request early access to our private beta of readable email premium.