Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: Eliminate 6 <p> elements that say when to apply early error rules #3266

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 6 additions & 18 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -20452,16 +20452,12 @@ <h2>Syntax</h2>
<emu-clause id="sec-assignment-operators-static-semantics-early-errors">
<h1>Static Semantics: Early Errors</h1>
<emu-grammar>AssignmentExpression : LeftHandSideExpression `=` AssignmentExpression</emu-grammar>
<p>If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, the following Early Error rules are applied:</p>
<ul>
<li>
|LeftHandSideExpression| must cover an |AssignmentPattern|.
If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, |LeftHandSideExpression| must cover an |AssignmentPattern|.
</li>
</ul>
<p>If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, the following Early Error rule is applied:</p>
<ul>
<li>
It is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, it is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
</li>
</ul>
<emu-grammar>
Expand Down Expand Up @@ -20725,16 +20721,12 @@ <h1>Static Semantics: Early Errors</h1>
</li>
</ul>
<emu-grammar>DestructuringAssignmentTarget : LeftHandSideExpression</emu-grammar>
<p>If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, the following Early Error rules are applied:</p>
<ul>
<li>
|LeftHandSideExpression| must cover an |AssignmentPattern|.
If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, |LeftHandSideExpression| must cover an |AssignmentPattern|.
</li>
</ul>
<p>If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, the following Early Error rule is applied:</p>
<ul>
<li>
It is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, it is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
</li>
</ul>
</emu-clause>
Expand Down Expand Up @@ -21921,16 +21913,12 @@ <h1>Static Semantics: Early Errors</h1>
`for` `(` LeftHandSideExpression `of` AssignmentExpression `)` Statement
`for` `await` `(` LeftHandSideExpression `of` AssignmentExpression `)` Statement
</emu-grammar>
<p>If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, the following Early Error rules are applied:</p>
<ul>
<li>
|LeftHandSideExpression| must cover an |AssignmentPattern|.
If |LeftHandSideExpression| is either an |ObjectLiteral| or an |ArrayLiteral|, |LeftHandSideExpression| must cover an |AssignmentPattern|.
</li>
</ul>
<p>If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, the following Early Error rule is applied:</p>
<ul>
<li>
It is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, it is a Syntax Error if AssignmentTargetType of |LeftHandSideExpression| is not ~simple~.
</li>
</ul>
<emu-grammar>
Expand Down
Loading