tor-browser

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

value-via-reflect-apply.js (493B)


      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-reflect.apply
      5 es6id: 26.1.1
      6 description: Value when invoked via `Reflect.apply`
      7 info: |
      8  [...]
      9  5. Return ? Call(target, thisArgument, args).
     10 features: [new.target, Reflect]
     11 ---*/
     12 
     13 var newTarget = null;
     14 
     15 function f() {
     16  newTarget = new.target;
     17 }
     18 
     19 Reflect.apply(f, {}, []);
     20 
     21 assert.sameValue(newTarget, undefined);
     22 
     23 reportCompare(0, 0);