Question about Symbols and GlobalSymbolRegistry

Cyrus Najmabadi cyrusn at
Tue Jan 27 14:32:35 PST 2015

Hi esdiscuss.  A couple more questions.

1)      Are the built-in symbols (like ‘Symbol.iterator’) in the GlobalSymbolRegsitry?

2)      If so, what are their keys?  i.e. how would one reach Symbol.iterator using Symbol.for(…)?


         -- Cyrus

From: Kevin Smith [mailto:zenparsing at]
Sent: Wednesday, January 21, 2015 5:16 PM
To: Cyrus Najmabadi
Cc: Jason Freeman; es-discuss
Subject: Re: Question about Symbols and GlobalSymbolRegistry

> Am I understanding correctly?

Yes. The argument to the Symbol constructor is just a descriptive string.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list