Microsoft/TypeScript

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

Open

#54.196 aberto em 9 de mai. de 2023

Ver no GitHub
 (10 comments) (0 reactions) (0 assignees)TypeScript (6.726 forks)batch import
BugDomain: ParserHelp Wanted

Métricas do repositório

Stars
 (48.455 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)

Description

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.

Guia do colaborador