Debian Codegraph @

js/src/tests/test262/language/expressions/conditional/in-branch-2.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-conditional-operator
6 es6id: 12.13
7 description: >
8 The second AssignmentExpression cannot include the `in` keyword in contexts
9 where it is disallowed.
10 info: |
11 Syntax
12
13 ConditionalExpression[In, Yield] :
14 LogicalORExpression[?In, ?Yield]
15 LogicalORExpression[?In, ?Yield] ? AssignmentExpression[+In, ?Yield] : AssignmentExpression[?In, ?Yield]
16 negative:
17 phase: parse
18 type: SyntaxError
19 ---*/
20
21 $DONOTEVALUATE();
22
23 for (true ? 0 : 0 in {}; false; ) ;