Debian Codegraph @

js/src/tests/test262/language/eval-code/direct/global-env-rec.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-1
5 description: Direct call to eval has context set to local context
6 ---*/
7
8 var __10_4_2_1_1_1 = "str";
9 function testcase() {
10 var __10_4_2_1_1_1 = "str1";
11 assert(eval("\'str1\' === __10_4_2_1_1_1"), 'direct eval');
12 }
13 testcase();
14
15 reportCompare(0, 0);