mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
TS1102 (`'delete' cannot be called on an identifier in strict mode`) is a semantic error that should be handled by the type checker, not the parser, when parsing TypeScript code. This aligns SWC's behavior with TypeScript's own parser. The error is still emitted for JavaScript strict mode code. Closes #10558 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Donny/강동윤 <[email protected]>