Microsoft/TypeScript
Voir sur GitHubMake private field name parsing ecma 262 compliant
Open
#50 883 ouverte le 21 sept. 2022
BugDomain: ParserEffort: ModerateHelp WantedRescheduled
Métriques du dépôt
- Stars
- (48 455 stars)
- Métriques de merge PR
- (Merge moyen 6j 17h) (9 PRs mergées en 30 j)
Description
This file has parse errors, but probably shouldn't.
Considerations:
- https://github.com/microsoft/TypeScript/pull/50856 added support for starting with a unicode escape
- The names
#ZW__NJand#ZW__Jcontain\u200cand\u200d, respectively (not here, but in the file) - Support for extended unicode escapes (i.e.
\u{6F}, rather than\u006F) depends on ES2015, but we appear to parse the file as ES5. - Converting the extended unicode escapes to regular unicode escapes does not seem to eliminate the errors
Discovered as part of https://github.com/microsoft/TypeScript/issues/50835