Closed
Description
π Search Terms
Error Debug Failure at transformClassLike
π Version & Regression Information
- This is a crash
β― Playground Link
No response
π» Code
$ git clone git@github.com:TryGhost/Ghost.git
$ cd Ghost
$ git rev-parse HEAD
69372d9018f156d56ae271b6d8e378efb9ea3012
$ yarn
$ node --enable-source-maps ~/work/TypeScript/built/local/tsc.js -p ghost/tsconfig.json
π Actual behavior
/home/jabaile/work/TypeScript/src/compiler/program.ts:2918
throw e;
^
Error: Debug Failure.
at transformClassLike (/home/jabaile/work/TypeScript/src/compiler/transformers/esDecorators.ts:700:19)
at visitClassDeclaration (/home/jabaile/work/TypeScript/src/compiler/transformers/esDecorators.ts:1094:30)
at visitor (/home/jabaile/work/TypeScript/src/compiler/transformers/esDecorators.ts:432:24)
at visitArrayWorker (/home/jabaile/work/TypeScript/src/compiler/visitorPublic.ts:345:57)
at visitNodes2 (/home/jabaile/work/TypeScript/src/compiler/visitorPublic.ts:258:21)
at visitLexicalEnvironment (/home/jabaile/work/TypeScript/src/compiler/visitorPublic.ts:383:18)
at visitEachChildOfSourceFile (/home/jabaile/work/TypeScript/src/compiler/visitorPublic.ts:1779:13)
at visitEachChild (/home/jabaile/work/TypeScript/src/compiler/visitorPublic.ts:603:38)
at transformSourceFile (/home/jabaile/work/TypeScript/src/compiler/transformers/esDecorators.ts:317:25)
at transformSourceFileOrBundle (/home/jabaile/work/TypeScript/src/compiler/transformers/utilities.ts:130:54)
Node.js v20.12.2
π Expected behavior
No crash.
Additional information about the issue
This bisects to #56955, at:
Debug.assertIsDefined(classInfo.classThis);
Activity
jakebailey commentedon Apr 22, 2024
Source file is
ghost/ghost/src/listeners/example.listener.ts
, node is:Which does crash the playground when I put it there.
rbuckton commentedon Oct 14, 2024
The crash seems to be due to using parameter decorators with Stage 3 decorator emit, which doesn't support parameter decorators.