tor-browser

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

global-env-rec-fun.js (601B)


      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-2
      5 description: >
      6    Indirect call to eval has context set to global context (nested
      7    function)
      8 ---*/
      9 
     10 var __10_4_2_1_2 = "str";
     11 function testcase() {
     12            var _eval = eval;
     13            var __10_4_2_1_2 = "str1";
     14            function foo() {
     15                var __10_4_2_1_2 = "str2";
     16                assert(_eval("\'str\' === __10_4_2_1_2"), 'indirect eval');
     17            }
     18            foo();
     19    }
     20 testcase();
     21 
     22 reportCompare(0, 0);