Debian Codegraph @

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

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