Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/annexB/language/statements/for-in/strict-initializer.js

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-initializers-in-forin-statement-heads
5 description: >
6 for-in initializers in strict mode are prohibited
7 negative:
8 phase: parse
9 type: SyntaxError
10 flags: [onlyStrict]
11 ---*/
12
13 throw "Test262: This statement should not be evaluated.";
14 throw NotEarlyError;
15 for (var a = 0 in {});
16