Microsoft/TypeScript

Valid JS code reported by TS as illegal code: Keywords cannot contain escape characters

Open

#54,196 创建于 2023年5月9日

在 GitHub 查看
 (10 评论) (0 反应) (0 负责人)TypeScript (6,726 fork)batch import
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.

贡献者指南