Debian Codegraph @

js/src/tests/test262/language/eval-code/direct/global-env-rec-fun.js

raw
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 Direct call to eval has context set to local context (nested function)
7 ---*/
8
9 var __10_4_2_1_2 = "str";
10 function testcase() {
11 var __10_4_2_1_2 = "str1";
12 function foo() {
13 var __10_4_2_1_2 = "str2";
14 assert(eval("\'str2\' === __10_4_2_1_2"), 'direct eval');
15 }
16 foo();
17 }
18 testcase();
19
20 reportCompare(0, 0);