Skip to content

Commit c326202

Browse files
authored
spec: Fix early error about conditionals
CC: @leobalter
1 parent 46b1325 commit c326202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ <h1>Static Semantics: Early Errors</h1>
710710
<emu-grammar>PipeBody : PipeExpression</emu-grammar>
711711
<emu-alg>
712712
1. It is a Syntax Error if one of the following productions is covering |PipeBody|:
713-
* |ConditionalExpression|
713+
* |ShortCircuitExpression| ? |AssignmentExpression| : |AssignmentExpression|
714714
* |YieldExpression|
715715
* |ArrowFunction|
716716
* |AsyncArrowFunction|
@@ -722,7 +722,7 @@ <h1>Static Semantics: Early Errors</h1>
722722
</emu-alg>
723723

724724
<emu-note>
725-
<p>A |PipeBody| must not be an unparenthesized expression that is formed from any other operator with identical precedence, such as a |YieldExpression| or an |ArrowFunction|.</p>
725+
<p>A |PipeBody| must not be an unparenthesized expression that is formed from any other operator with identical precedence (such as |YieldExpression| or |ArrowFunction|) or from the <emu-xref="#sec-conditional-operator">conditional operator</emu-xref>.</p>
726726
<p>This is to prevent confusing expressions from being valid, such as
727727
`x |> yield % |> % + 1`.<br>
728728
That expression would otherwise be unexpectedly equivalent to

0 commit comments

Comments
 (0)