Debian Codegraph @

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

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