Debian Codegraph @

js/src/tests/test262/language/eval-code/direct/var-env-var-strict-caller-3-strict.js

raw
1 'use strict';
2 // Copyright (c) 2012 Ecma International. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 es5id: 10.4.2-3-c-3-s
7 description: >
8 Calling code in strict mode - eval cannot instantiate variable in
9 the global context
10 flags: [onlyStrict]
11 ---*/
12
13 var _10_4_2_3_c_3_s = 0;
14 function testcase() {
15 eval("var _10_4_2_3_c_3_s = 1");
16 assert.sameValue(_10_4_2_3_c_3_s, 0);
17 }
18 testcase();
19
20 reportCompare(0, 0);