New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ES6 Unicode escaped identifiers #941
Comments
Please request this upstream at acorn. |
acornjs/acorn#214 and acornjs/acorn#215 are now fixed. |
Will take a little longer than I hoped since acorn is radically changing it's structure and will require me to rewrite all the custom acorn extensions (ES7, Flow etc). Once acornjs/acorn#216 is merged I should be able to nut through it in a day. |
Fixed in the |
is this going to stay only in "experimental" mode? |
No, the |
ahh, ok, sorry for misunderstanding. thanks! :) |
The new Unicode "code point escape" form is also valid for identifiers, such as:
AFAICT, no one has implemented this part of the grammar yet. As usual, @mathiasbynens has a bunch of great stuff about what makes a valid Unicode identifier in ES6 vs ES5, etc.
BTW:
I'm not sure, but support of this feature may just need to be that such variables are straight up hygenically renamed to something else entirely, because there's (AFAICT) no equivalent way to do those kind of identifier names in pre-ES6.
The text was updated successfully, but these errors were encountered: