Debian Codegraph @

packages/babel-plugin-proposal-decorators/test/fixtures/2018-09-element-descriptors/default/exec.js

raw symbols SCIP
1 function decorate(el) {
2 el.descriptor.value = 2;
3 }
4
5 var Foo;
6
7 expect(() => {
8 Foo = @(() => void 0) class Foo {
9 @decorate
10 bar() {}
11 }
12 }).not.toThrow();
13
14 expect(Foo.prototype.bar).toBe(2);