mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
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);
|