How can a lexer decide a token to be "get", "IdentifierName" or "Identifier" ?

Brendan Eich brendan at mozilla.com
Mon Feb 4 15:44:18 PST 2013


gaz Heyes wrote:
> I find the syntax of set/get confusing:

What's confusing?

> ({'get'x(){return 123;}}).x 

That's not legal ES5.

/be


More information about the es-discuss mailing list