cannot-chain-head-with-logical-or.js (806B)
1 // |reftest| error:SyntaxError 2 // Copyright (C) 2019 Leo Balter. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 description: > 7 Cannot immediately contain, or be contained within, an && or || operation. 8 esid: sec-conditional-operator 9 info: | 10 ConditionalExpression : 11 ShortCircuitExpression 12 ShortCircuitExpression ? AssignmentExpression : AssignmentExpression 13 14 ShortCircuitExpression : 15 LogicalORExpression 16 CoalesceExpression 17 18 CoalesceExpression : 19 CoalesceExpressionHead ?? BitwiseORExpression 20 21 CoalesceExpressionHead : 22 CoalesceExpression 23 BitwiseORExpression 24 features: [coalesce-expression] 25 negative: 26 phase: parse 27 type: SyntaxError 28 ---*/ 29 30 $DONOTEVALUATE(); 31 32 0 || 0 ?? true;