Skip to content

Commit

Permalink
Revert 'await' restriction (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Apr 11, 2023
1 parent 3b3345a commit 2c837e7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spec.emu
Expand Up @@ -2107,7 +2107,7 @@ contributors: Ron Buckton, Ecma International

<ins>
UsingDeclaration[In, Yield, Await] :
`using` [no LineTerminator here] [lookahead != `await`] BindingList[?In, ?Yield, ?Await, ~Pattern] `;`
`using` [no LineTerminator here] BindingList[?In, ?Yield, ?Await, ~Pattern] `;`
</ins>

BindingList[In, Yield, Await, <ins>Pattern</ins>] :
Expand All @@ -2131,9 +2131,6 @@ contributors: Ron Buckton, Ecma International
<li>
It is a Syntax Error if the BoundNames of |BindingList| contains *"let"*.
</li>
<li>
It is a Syntax Error if the BoundNames of |BindingList| contains *"await"*.
</li>
<li>
It is a Syntax Error if the BoundNames of |BindingList| contains any duplicate entries.
</li>
Expand Down Expand Up @@ -2390,7 +2387,7 @@ contributors: Ron Buckton, Ecma International

ForDeclaration[Yield, Await, <ins>Using</ins>] :
LetOrConst ForBinding[?Yield, ?Await, <ins>+Pattern</ins>]
<ins>[+Using] `using` [no LineTerminator here] [lookahead != `await`] ForBinding[?Yield, ?Await, ~Pattern]</ins>
<ins>[+Using] `using` [no LineTerminator here] ForBinding[?Yield, ?Await, ~Pattern]</ins>

ForBinding[Yield, Await, <ins>Pattern</ins>] :
BindingIdentifier[?Yield, ?Await]
Expand Down

0 comments on commit 2c837e7

Please sign in to comment.