mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
13 lines
177 B
JavaScript
13 lines
177 B
JavaScript
"use strict";
|
|
|
|
const targets = [];
|
|
function foo() {
|
|
targets.push(new.target);
|
|
}
|
|
|
|
foo();
|
|
foo.call({});
|
|
|
|
expect(targets[0]).toBeUndefined();
|
|
expect(targets[1]).toBeUndefined();
|