2019-10-10 00:11:34 +02:00
|
|
|
// Copyright (C) 2019 Leo Balter. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
description: >
|
|
|
|
Cannot immediately contain, or be contained within, an && or || operation.
|
|
|
|
esid: sec-conditional-operator
|
|
|
|
info: |
|
|
|
|
ConditionalExpression :
|
|
|
|
ShortCircuitExpression
|
|
|
|
ShortCircuitExpression ? AssignmentExpression : AssignmentExpression
|
|
|
|
|
|
|
|
ShortCircuitExpression :
|
|
|
|
LogicalORExpression
|
|
|
|
CoalesceExpression
|
|
|
|
|
|
|
|
CoalesceExpression :
|
|
|
|
CoalesceExpressionHead ?? BitwiseORExpression
|
|
|
|
|
|
|
|
CoalesceExpressionHead :
|
|
|
|
CoalesceExpression
|
|
|
|
BitwiseORExpression
|
|
|
|
features: [coalesce-expression]
|
|
|
|
negative:
|
2019-11-11 20:38:26 +01:00
|
|
|
phase: parse
|
2019-10-10 00:11:34 +02:00
|
|
|
type: SyntaxError
|
|
|
|
---*/
|
|
|
|
|
2019-11-11 20:38:26 +01:00
|
|
|
$DONOTEVALUATE();
|
|
|
|
|
|
|
|
0 || 0 ?? true;
|