Debian Codegraph @

js/src/tests/test262/language/eval-code/direct/var-env-var-strict-source.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 /*---
5 es5id: 10.4.2-3-c-1-s
6 description: >
7 Direct eval code in strict mode - cannot instantiate variable in
8 the variable environment of the calling context
9 ---*/
10
11 function testcase() {
12 var _10_4_2_3_c_1_s = 0;
13 function _10_4_2_3_c_1_sFunc() {
14 eval("'use strict';var _10_4_2_3_c_1_s = 1");
15 assert.sameValue(_10_4_2_3_c_1_s, 0);
16 }
17 _10_4_2_3_c_1_sFunc();
18 }
19 testcase();
20
21 reportCompare(0, 0);