Skip to content

Commit

Permalink
Normative: Apply B.3.3 to non-top level function declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
anba authored and bterlson committed Nov 2, 2015
1 parent 04e2e9b commit efbfc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -36124,7 +36124,7 @@ <h1>Changes to FunctionDeclarationInstantiation</h1>
<p>During FunctionDeclarationInstantiation (<emu-xref href="#sec-functiondeclarationinstantiation"></emu-xref>) the following steps are performed in place of step 29:</p>
<emu-alg>
1. If _strict_ is *false*, then
1. For each |FunctionDeclaration| _f_ in _varDeclarations_ that is directly contained in the |StatementList| of a |Block|, |CaseClause|, or |DefaultClause|,
1. For each |FunctionDeclaration| _f_ that is directly contained in the |StatementList| of a |Block|, |CaseClause|, or |DefaultClause|,
1. Let _F_ be StringValue of the |BindingIdentifier| of |FunctionDeclaration| _f_.
1. If replacing the |FunctionDeclaration| _f_ with a |VariableStatement| that has _F_ as a |BindingIdentifier| would not produce any Early Errors for _func_ and _F_ is not an element of BoundNames of _argumentsList_, then
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|.
Expand Down

0 comments on commit efbfc88

Please sign in to comment.