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

Split Unicode Escape tests #1627

Merged

Conversation

jridgewell
Copy link
Contributor

Babel is concerned with a few unique cases:

  1. Escapes in strings
  2. Escapes in bare identifiers
  3. Escapes in the property keys

These require a slightly different transform for each, and only strings and property keys are actually transformable. If we encounter an escape in a bare identifier, we currently error out.

Babel is [concerned](babel/babel#11377) with a few unique cases:

1. Escapes in strings
2. Escapes in bare identifiers
3. Escapes in the property keys

These require a slightly different transform for each, and only strings and property keys are actually transformable. If we encounter an escape in a bare identifier, we currently error out.
return o['\ud800\udec0'] === 2;
*/},
res: {
ejs: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reused the same test results, since this was split from the previous test. I imagine everything will pass them both individually.

return o.\u{102C0} === 2;
*/},
res: {
edge12: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the only implementations I could manually verify.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as results are all manually verified, this LGTM

@ljharb ljharb requested a review from chicoxyzzy May 18, 2020 20:56
@chicoxyzzy chicoxyzzy merged commit 50e5424 into compat-table:gh-pages May 19, 2020
@jridgewell jridgewell deleted the split-unicode-escape-tests branch May 19, 2020 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants