Debian Codegraph @

packages/babel-plugin-proposal-class-properties/test/fixtures/public/call/exec.js

raw
1 class Foo {
2 foo = function() {
3 return this;
4 }
5
6 test(other) {
7 return [this.foo(), other.foo()];
8 }
9 }
10
11 const f = new Foo;
12 const o = new Foo;
13 const test = f.test(o);
14 expect(test[0]).toBe(f);
15 expect(test[1]).toBe(o);