Skip to content
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

Can't parse identifiers with Unicode escape sequence #181

Closed
ariya opened this issue Aug 1, 2015 · 1 comment
Closed

Can't parse identifiers with Unicode escape sequence #181

ariya opened this issue Aug 1, 2015 · 1 comment

Comments

@ariya
Copy link

ariya commented Aug 1, 2015

See ES2015 spec section 11.6.1, Unicode escape sequence can be used in identifier name.

Test case:

espree.parse('var \\u{41}', { ecmaFeatures: { unicodeCodePointEscapes: true } })

Actual: Error: Line 1: Unexpected token ILLEGAL.

Expected: a valid syntax tree.

@nzakas
Copy link
Member

nzakas commented Dec 1, 2015

Working on this.

@nzakas nzakas closed this as completed in 72f22bf Dec 1, 2015
nzakas added a commit that referenced this issue Dec 1, 2015
Fix: parse unicode escapes in identifiers (fixes #181)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants