tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

value-via-fpapply.js (491B)


      1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-function.prototype.apply
      5 es6id: 19.2.3.1
      6 description: Value when invoked via `Function.prototype.apply`
      7 info: |
      8  [...]
      9  5. Return ? Call(func, thisArg, argList).
     10 features: [new.target]
     11 ---*/
     12 
     13 var newTarget = null;
     14 
     15 function f() {
     16  newTarget = new.target;
     17 }
     18 
     19 f.apply({});
     20 
     21 assert.sameValue(newTarget, undefined);
     22 
     23 reportCompare(0, 0);