google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.17k stars 580 forks source link

Unicode escape sequences should be permitted in IdentifierName #1314

Open hzr opened 10 years ago

hzr commented 10 years ago

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-names-and-keywords

hzr commented 10 years ago

I'll take a look at this.

hzr commented 10 years ago

Or should this not be supported as only a subset can be compiled to ES5?

arv commented 10 years ago

I'm not sure what the ES5 support is here.

This bug is pretty low priority since it is generally bad practice to use non ascii identifiers anyway.

mathiasbynens commented 10 years ago

https://mathiasbynens.be/demo/javascript-identifier-regex (view source) might be of use. (Ignore the mixed content warning for now.)

mathiasbynens commented 10 years ago

Relevant spec bug: https://bugs.ecmascript.org/show_bug.cgi?id=277