From d9d189af3ccef79c99cefe6988e2ac20636c041e Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Fri, 22 Mar 2024 16:33:12 -0400 Subject: [PATCH] Remove superfluous ClassBody restriction --- spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 790137a98ac..3fb19e7ef0b 100644 --- a/spec.html +++ b/spec.html @@ -21738,7 +21738,7 @@

Static Semantics: Early Errors

It is a Syntax Error if the BoundNames of |BindingList| contains any duplicate entries.
  • - It is a Syntax Error if the goal symbol is |Script| and |UsingDeclaration| is not contained, either directly or indirectly, within a |Block|, |CaseBlock|, |ForStatement|, |ForInOfStatement|, |FunctionBody|, |GeneratorBody|, |AsyncGeneratorBody|, |AsyncFunctionBody|, |ClassStaticBlockBody|, or |ClassBody|. + It is a Syntax Error if the goal symbol is |Script| and |UsingDeclaration| is not contained, either directly or indirectly, within a |Block|, |CaseBlock|, |ForStatement|, |ForInOfStatement|, |FunctionBody|, |GeneratorBody|, |AsyncGeneratorBody|, |AsyncFunctionBody|, or |ClassStaticBlockBody|.
  • @@ -21754,7 +21754,7 @@

    Static Semantics: Early Errors

    It is a Syntax Error if the BoundNames of |BindingList| contains any duplicate entries.
  • - It is a Syntax Error if the goal symbol is |Script| and |AwaitUsingDeclaration| is not contained, either directly or indirectly, within a |Block|, |CaseBlock|, |ForStatement|, |ForInOfStatement|, |FunctionBody|, |GeneratorBody|, |AsyncGeneratorBody|, |AsyncFunctionBody|, |ClassStaticBlockBody|, or |ClassBody|. + It is a Syntax Error if the goal symbol is |Script| and |AwaitUsingDeclaration| is not contained, either directly or indirectly, within a |Block|, |CaseBlock|, |ForStatement|, |ForInOfStatement|, |FunctionBody|, |GeneratorBody|, |AsyncGeneratorBody|, |AsyncFunctionBody|, or |ClassStaticBlockBody|.
  • LexicalBinding : BindingIdentifier Initializer?