| 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 expression's LogicalORExpression sub-expression cannot include the `in` |
| 8 |
keyword in contexts 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 ('' in {} ? 0 : 0; false; ) ; |