Unicode Escape sequences for keywords, what's the correct behaviour?

Allen Wirfs-Brock allen at wirfs-brock.com
Thu Mar 21 08:41:35 PDT 2013


As a keyword.

This is clarified in the ES6 draft (http://people.mozilla.org/~jorendorff/es6-draft.html#sec-7.6.1 )

Allen



On Mar 21, 2013, at 3:04 AM, BelleveInvis wrote:

> If a keyword represented as unicode escape sequences, should it interpreted as identifier or keyword?
> 
> Example code: 
> 
>     \u0076\u0061\u0072 a
> 
> Should it throw a syntax error? 		 	   		  
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130321/011d24f1/attachment.html>


More information about the es-discuss mailing list