global-env-rec-eval.js (586B)
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-5 5 description: > 6 Direct call to eval has context set to local context (inside another eval) 7 ---*/ 8 9 var __10_4_2_1_5 = "str"; 10 function testcase() { 11 var __10_4_2_1_5 = "str1"; 12 var r = eval("\ 13 var __10_4_2_1_5 = \'str2\'; \ 14 eval(\"\'str2\' === __10_4_2_1_5\")\ 15 "); 16 assert(r); 17 } 18 testcase(); 19 20 reportCompare(0, 0);