Debian Codegraph @

packages/babel-plugin-transform-new-target/test/fixtures/exec/function-class.js

raw
1 "use strict";
2
3 const targets = [];
4 function Foo() {
5 targets.push(new.target);
6 }
7
8 new Foo;
9
10 expect(targets[0]).toBe(Foo);