11 lines
123 B
JavaScript
11 lines
123 B
JavaScript
"use strict";
|
|
|
|
const targets = [];
|
|
function Foo() {
|
|
targets.push(new.target);
|
|
}
|
|
|
|
new Foo;
|
|
|
|
expect(targets[0]).toBe(Foo);
|