Debian Codegraph @

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