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

Support ES2015 unicode escape sequence additions #917

Closed
p-bakker opened this issue May 31, 2021 · 5 comments · Fixed by #1383
Closed

Support ES2015 unicode escape sequence additions #917

p-bakker opened this issue May 31, 2021 · 5 comments · Fixed by #1383
Labels
feature Issues considered a new feature
Milestone

Comments

@p-bakker
Copy link
Collaborator

p-bakker commented May 31, 2021

ES6 added the \u{...} escape sequence format to allow escaping unicode values > FFFF

See https://exploringjs.com/es6/ch_unicode.html for example

@p-bakker p-bakker changed the title Support ES6 unicode escape sequence additions Support ES2015 unicode escape sequence additions Jun 23, 2021
@p-bakker p-bakker added this to the ES2015 milestone Jun 29, 2021
@p-bakker p-bakker added the feature Issues considered a new feature label Oct 14, 2021
@tuchida
Copy link
Contributor

tuchida commented Mar 12, 2022

I am implementing this and have noticed a few things.

I can be modified as per specifications, but it would be breaking changes. It might be better to control it with some flag. These may be different issues.

@p-bakker
Copy link
Collaborator Author

I've implemented this as well as part of trying to implement the 'u'/Unicode option for regexes and ran into the same problems, see
#958 (comment)

Also see that above comment for my thoughts on fixing this: enable the spec compliant behavior in a new ECMASCRIPT language version

@p-bakker
Copy link
Collaborator Author

p-bakker commented Mar 12, 2022

Also, the commit that implemented that specific behavior for keyword is 323f151

The commit references an issue 490, but I cannot find any reference to that, so no idea why exactly this was implemented this way

@p-bakker
Copy link
Collaborator Author

Think I found what the '490' referred to: issue report against Closure Compiler on the archived Google Code project, see http://blickly.github.io/closure-compiler-issues/#490

@tuchida
Copy link
Contributor

tuchida commented Aug 28, 2023

This has been supported.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issues considered a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants