tor-browser

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

this-value-func-strict-source.js (443B)


      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 (strict
      6    function scope)
      7 esid: sec-performeval
      8 flags: [noStrict]
      9 ---*/
     10 
     11 var thisValue;
     12 
     13 (function() {
     14  thisValue = eval('"use strict"; this;');
     15 }());
     16 
     17 assert.sameValue(thisValue, this);
     18 
     19 reportCompare(0, 0);