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

Extended Unicode escapes should be parsed in all language targets #50935

Closed
DanielRosenwasser opened this issue Sep 24, 2022 · 0 comments · Fixed by #50918
Closed

Extended Unicode escapes should be parsed in all language targets #50935

DanielRosenwasser opened this issue Sep 24, 2022 · 0 comments · Fixed by #50918
Labels
Bug A bug in TypeScript ES6 Relates to the ES6 Spec Fix Available A PR has been opened for this issue

Comments

@DanielRosenwasser
Copy link
Member

export let \u{78} = 10;
x++;

Should be a valid file for us to parse and type-check regardless of the language target; however, in ES3 and ES5, this goes haywire because we only parse extended Unicode escapes in ES2015+.

This is a pre-requisite for #50883.

@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript ES6 Relates to the ES6 Spec labels Sep 24, 2022
@DanielRosenwasser DanielRosenwasser added this to the TypeScript 4.9.2 milestone Sep 24, 2022
@typescript-bot typescript-bot added the Fix Available A PR has been opened for this issue label Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript ES6 Relates to the ES6 Spec Fix Available A PR has been opened for this issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants