function.js 177 B

12345678910111213
  1. "use strict";
  2. const targets = [];
  3. function foo() {
  4. targets.push(new.target);
  5. }
  6. foo();
  7. foo.call({});
  8. expect(targets[0]).toBeUndefined();
  9. expect(targets[1]).toBeUndefined();