13 lines
142 B
JavaScript
13 lines
142 B
JavaScript
"use strict";
|
|
|
|
const targets = [];
|
|
class Foo {
|
|
constructor() {
|
|
targets.push(new.target);
|
|
}
|
|
}
|
|
|
|
new Foo;
|
|
|
|
expect(targets[0]).toBe(Foo);
|