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

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();