tor-browser

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

global-env-rec.js (442B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es5id: 10.4.2-1-1
      5 description: Indirect call to eval has context set to global context
      6 ---*/
      7 
      8 var __10_4_2_1_1_1 = "str";
      9 function testcase() {
     10    var _eval = eval;
     11    var __10_4_2_1_1_1 = "str1";
     12    assert(_eval("\'str\' === __10_4_2_1_1_1"), 'indirect eval');
     13 }
     14 testcase();
     15 
     16 reportCompare(0, 0);