Debian Codegraph @

js/src/tests/test262/language/eval-code/indirect/var-env-var-strict.js

raw
1 // Copyright 2011 Google Inc. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 es5id: 10.4.2.1_A1
6 description: >
7 Strict indirect eval should not leak top level declarations into
8 the global scope
9 ---*/
10
11 if (!('foo' in this)) {
12 (1,eval)('"use strict"; var foo = 88;');
13 if ('foo' in this) {
14 throw new Test262Error("Strict indirect eval leaked a top level declaration");
15 }
16 }
17
18 reportCompare(0, 0);