You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the 3 occurrences of
a |Block|, |CaseClause|, or |DefaultClause| Contained within _code_
to
any |Block|, |CaseClause|, or |DefaultClause| _x_ such that _code_ Contains _x_ is *true*
(See #2663 (comment))
Copy file name to clipboardexpand all lines: spec.html
+3-3
Original file line number
Diff line number
Diff line change
@@ -51033,7 +51033,7 @@ <h1>Changes to FunctionDeclarationInstantiation</h1>
51033
51033
<p>During FunctionDeclarationInstantiation the following steps are performed in place of step <emu-xref href="#step-functiondeclarationinstantiation-web-compat-insertion-point"></emu-xref>:</p>
1. For each |FunctionDeclaration| _f_ that is directly contained in the |StatementList| of a |Block|, |CaseClause|, or |DefaultClause| Contained within _code_, do
51036
+
1. For each |FunctionDeclaration| _f_ that is directly contained in the |StatementList| of any |Block|, |CaseClause|, or |DefaultClause| _x_ such that _code_ Contains _x_ is *true*, do
51037
51037
1. Let _F_ be the StringValue of the |BindingIdentifier| of _f_.
51038
51038
1. If replacing the |FunctionDeclaration| _f_ with a |VariableStatement| that has _F_ as a |BindingIdentifier| would not produce any Early Errors for _func_ and _parameterNames_ does not contain _F_, then
51039
51039
1. NOTE: A var binding for _F_ is only instantiated here if it is neither a VarDeclaredName, the name of a formal parameter, or another |FunctionDeclaration|.
@@ -51058,7 +51058,7 @@ <h1>Changes to GlobalDeclarationInstantiation</h1>
51058
51058
1. Let _strict_ be ScriptIsStrict of _script_.
51059
51059
1. If _strict_ is *false*, then
51060
51060
1. Let _declaredFunctionOrVarNames_ be the list-concatenation of _declaredFunctionNames_ and _declaredVarNames_.
51061
-
1. For each |FunctionDeclaration| _f_ that is directly contained in the |StatementList| of a |Block|, |CaseClause|, or |DefaultClause| Contained within _script_, do
51061
+
1. For each |FunctionDeclaration| _f_ that is directly contained in the |StatementList| of any |Block|, |CaseClause|, or |DefaultClause| _x_ such that _script_ Contains _x_ is *true*, do
51062
51062
1. Let _F_ be the StringValue of the |BindingIdentifier| of _f_.
51063
51063
1. If replacing the |FunctionDeclaration| _f_ with a |VariableStatement| that has _F_ as a |BindingIdentifier| would not produce any Early Errors for _script_, then
51064
51064
1. If _env_.HasLexicalDeclaration(_F_) is *false*, then
@@ -51083,7 +51083,7 @@ <h1>Changes to EvalDeclarationInstantiation</h1>
1. Let _declaredFunctionOrVarNames_ be the list-concatenation of _declaredFunctionNames_ and _declaredVarNames_.
51086
-
1. For each |FunctionDeclaration| _f_ that is directly contained in the |StatementList| of a |Block|, |CaseClause|, or |DefaultClause| Contained within _body_, do
51086
+
1. For each |FunctionDeclaration| _f_ that is directly contained in the |StatementList| of any |Block|, |CaseClause|, or |DefaultClause| _x_ such that _body_ Contains _x_ is *true*, do
51087
51087
1. Let _F_ be the StringValue of the |BindingIdentifier| of _f_.
51088
51088
1. If replacing the |FunctionDeclaration| _f_ with a |VariableStatement| that has _F_ as a |BindingIdentifier| would not produce any Early Errors for _body_, then
0 commit comments