Debian Codegraph @

js/src/tests/test262/language/statements/for-in/var-eval-strict-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright (c) 2012 Ecma International. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5
6 /*---
7 esid: sec-for-statement
8 description: "'for(var eval in ...) {...}' throws SyntaxError in strict mode"
9 flags: [onlyStrict]
10 negative:
11 phase: parse
12 type: SyntaxError
13 ---*/
14
15 $DONOTEVALUATE();
16
17 for (var eval in null) {}