Skip to content

Allow Unicode extended escapes in ES5 and earlier#50918

Merged
DanielRosenwasser merged 12 commits intomainfrom
acceptExtendedEscapes
Sep 30, 2022
Merged

Allow Unicode extended escapes in ES5 and earlier#50918
DanielRosenwasser merged 12 commits intomainfrom
acceptExtendedEscapes

Conversation

@DanielRosenwasser
Copy link
Copy Markdown
Member

@DanielRosenwasser DanielRosenwasser commented Sep 23, 2022

Previously, I suppose because we didn't want to support emit fully, we didn't parse out Unicode extended escape sequences; however, it doesn't make sense for us not to parse them.

This PR allows us to successfully parse Unicode extended escapes in all language versions, and also emits them without any escapes when emitting to any target lower than ES2015. If we don't want to add new parameters to createIdentifier, I can just add the new tracking information separately in the parser, or we can swap this to just being an error.

Part of support for #50883.
Fixes #50935.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extended Unicode escapes should be parsed in all language targets

4 participants