tor-browser

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

global-env-rec-with.js (617B)


      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-4
      5 description: >
      6    Indirect call to eval has context set to global context (with
      7    block)
      8 flags: [noStrict]
      9 ---*/
     10 
     11 var __10_4_2_1_4 = "str";
     12 function testcase() {
     13            var o = new Object();
     14            o.__10_4_2_1_4 = "str2";
     15            var _eval = eval;
     16            var __10_4_2_1_4 = "str1";
     17            with (o) {
     18                assert(_eval("\'str\' === __10_4_2_1_4"), 'indirect eval');
     19            }
     20    }
     21 testcase();
     22 
     23 reportCompare(0, 0);