Microsoft/TypeScript
在 GitHub 查看Valid JS code reported by TS as illegal code: Keywords cannot contain escape characters
Open
#54,196 建立於 2023年5月9日
BugDomain: ParserHelp Wanted
倉庫指標
- Star
- (48,455 star)
- PR 合併指標
- (平均合併 6天 17小時) (30 天內合併 9 個 PR)
描述
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.