Skip to content

Commit

Permalink
Normative: add missing AsyncGenerator cases to ContainsArguments (#2505)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot authored and ljharb committed Sep 16, 2021
1 parent 6326912 commit 2e131c2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -23981,6 +23981,13 @@ <h1>Static Semantics: ContainsArguments</h1>
GeneratorExpression :
`function` `*` BindingIdentifier? `(` FormalParameters `)` `{` GeneratorBody `}`

AsyncGeneratorDeclaration :
`async` `function` `*` BindingIdentifier `(` FormalParameters `)` `{` AsyncGeneratorBody `}`
`async` `function` `*` `(` FormalParameters `)` `{` AsyncGeneratorBody `}`

AsyncGeneratorExpression :
`async` `function` `*` BindingIdentifier? `(` FormalParameters `)` `{` AsyncGeneratorBody `}`

AsyncFunctionDeclaration :
`async` `function` BindingIdentifier `(` FormalParameters `)` `{` AsyncFunctionBody `}`
`async` `function` `(` FormalParameters `)` `{` AsyncFunctionBody `}`
Expand All @@ -24001,6 +24008,9 @@ <h1>Static Semantics: ContainsArguments</h1>
GeneratorMethod :
`*` ClassElementName `(` UniqueFormalParameters `)` `{` GeneratorBody `}`

AsyncGeneratorMethod :
`async` `*` ClassElementName `(` UniqueFormalParameters `)` `{` AsyncGeneratorBody `}`

AsyncMethod :
`async` ClassElementName `(` UniqueFormalParameters `)` `{` AsyncFunctionBody `}`
</emu-grammar>
Expand Down

0 comments on commit 2e131c2

Please sign in to comment.