Microsoft/TypeScript

Debug Failure. Did not expect ObjectLiteralExpression to have an Identifier in its trivia

Open

#58,027 创建于 2024年4月1日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)TypeScript (6,726 fork)batch import
BugDomain: CrashesHelp Wanted

仓库指标

Star
 (48,455 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 9 个 PR)

描述

🔎 Search Terms

identifier unicode es5 es2015 trivia object literal expression failure

🕗 Version & Regression Information

  • This is a crash
  • This changed between versions ______ and _______
  • This changed in commit or PR _______
  • This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
  • I was unable to test this on prior versions because _______

⏯ Playground Link

https://www.typescriptlang.org/play?target=1&ts=5.5.0-dev.20240401#code/PTAEAEBcEMCcHMCmkBcpEGcCsAoAbnKAOKgC8oA3qIKwbgILtoBEAZAIIBmsA3A6AL6c4gA

💻 Code

// @target: es5
var G = { 𝔄: "𝔄" };

🙁 Actual behavior

TS server crashes when hovering over this property

🙂 Expected behavior

it shouldn't crash

Additional information about the issue

repro based on https://github.com/microsoft/TypeScript/issues/58018#issuecomment-2028929069

贡献者指南