Can `let`, `static` and `yield` still be used as Identifier?

Gary Guo nbdd0121 at hotmail.com
Mon Dec 29 02:35:48 PST 2014


From the specification I saw `yield` is being explicitly declared as an possible Identifier in non-strict mode, and there `let`, `static` are parsed as identifier first. However, I did not see anyway to distinguish `let` identifier and `let` keyword. `let=1` is parsed as illegal in traceur, and so does `static=1`. Is this a bug of traceur or it is intended? It would be incompatible in non-strict mode if this is intended. (And if this is intended, there will be no reason for keep `let` and `static` non-reserved-word during lex stage) 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141229/9cf66652/attachment.html>


More information about the es-discuss mailing list