tor-browser

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

this-value-func.js (419B)


      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 description: >
      5    Direct eval code has the same `this` binding as the calling context
      6    (non-strict function scope)
      7 esid: sec-performeval
      8 ---*/
      9 
     10 var thisValue;
     11 
     12 (function() {
     13  thisValue = (0,eval)('this;');
     14 }());
     15 
     16 assert.sameValue(thisValue, this);
     17 
     18 reportCompare(0, 0);