From 6277c43005e2f2b366a21594592a8d5b4dd4759e Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Wed, 10 Apr 2024 14:09:27 -0400 Subject: [PATCH] Remove superfluous ClassBody restriction (#220) --- spec.emu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.emu b/spec.emu index e98109e..db43228 100644 --- a/spec.emu +++ b/spec.emu @@ -2665,7 +2665,7 @@ contributors: Ron Buckton, Ecma International 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|.
  • @@ -2681,7 +2681,7 @@ contributors: Ron Buckton, Ecma International 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|.