Debian Codegraph @

packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-misc--to-es2015/leaked-context-addInitializer-throw/exec.js

raw symbols SCIP
1 let addInitializer;
2
3 function decMethod(_, context) {
4 ({ addInitializer } = context);
5 addInitializer(() => null);
6 }
7
8 try {
9 class C {
10 @decMethod
11 m() {}
12 }
13 } finally {}
14
15 expect(() => {
16 addInitializer(() => null);
17 }).toThrow('attempted to call addInitializer after decoration was finished')