Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/conditional/in-branch-2.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-conditional-operator
5 es6id: 12.13
6 description: >
7 The second AssignmentExpression cannot include the `in` keyword in contexts
8 where it is disallowed.
9 info: |
10 Syntax
11
12 ConditionalExpression[In, Yield] :
13 LogicalORExpression[?In, ?Yield]
14 LogicalORExpression[?In, ?Yield] ? AssignmentExpression[+In, ?Yield] : AssignmentExpression[?In, ?Yield]
15 negative:
16 phase: parse
17 type: SyntaxError
18 ---*/
19
20 throw "Test262: This statement should not be evaluated.";
21
22 for (true ? 0 : 0 in {}; false; ) ;