Skip to content

Commit

Permalink
Remove 'await' restriction per March 2023 consensus. See tc39/proposa…
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Mar 27, 2023
1 parent 3044fd9 commit 7de74fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec.html
Expand Up @@ -17795,7 +17795,7 @@ <h1>Rules of Automatic Semicolon Insertion</h1>
LeftHandSideExpression[?Yield, ?Await] [no LineTerminator here] `--`

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

ContinueStatement[Yield, Await] :
`continue` `;`
Expand Down Expand Up @@ -21295,7 +21295,7 @@ <h2>Syntax</h2>
`const`

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

BindingList[In, Yield, Await, Pattern] :
LexicalBinding[?In, ?Yield, ?Await, ?Pattern]
Expand Down Expand Up @@ -21323,7 +21323,7 @@ <h1>Static Semantics: Early Errors</h1>
</emu-grammar>
<ul>
<li>
It is a Syntax Error if the BoundNames of |BindingList| contains *"let"* or *"await"*.
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 any duplicate entries.
Expand Down Expand Up @@ -22001,7 +22001,7 @@ <h2>Syntax</h2>

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

ForBinding[Yield, Await, Pattern] :
BindingIdentifier[?Yield, ?Await]
Expand Down

0 comments on commit 7de74fa

Please sign in to comment.