Microsoft/TypeScript
GitHub ã§èŠãValid JS code reported by TS as illegal code: Keywords cannot contain escape characters
Open
#54,196 opened on 2023幎5æ9æ¥
BugDomain: ParserHelp Wanted
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
Bug Report
ð Search Terms
\u{63}onstructor() valid javascript code returns error Keywords cannot contain escape characters escape characters
ð Version & Regression Information
- This is the behavior in every version I tried.
⯠Playground Link
Playground link with relevant code
ð» Code
class C {
\u{63}onstructor() {} // equivalent to: constructor() {}
}
ð Actual behavior
Errors in code Keywords cannot contain escape characters.
ð Expected behavior
No errors as it is valid javascript code.