Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions esmeta-ignore.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"DoWait",
"EvaluateImportCall",
"FinishLoadingImportedModule",
"FunctionDeclarationInstantiation",
"FunctionBody[0,0].EvaluateFunctionBody",
"GetViewByteLength",
"INTRINSICS.Atomics.notify",
Expand Down
8 changes: 5 additions & 3 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -13848,7 +13848,7 @@ <h1>
FunctionDeclarationInstantiation (
_func_: an ECMAScript function object,
_argumentsList_: a List of ECMAScript language values,
): either a normal completion containing ~unused~ or an abrupt completion
): either a normal completion containing ~unused~ or a throw completion
</h1>
<dl class="header">
<dt>description</dt>
Expand Down Expand Up @@ -13927,9 +13927,11 @@ <h1>
1. Let _parameterBindings_ be _parameterNames_.
1. Let _iteratorRecord_ be CreateListIteratorRecord(_argumentsList_).
1. If _hasDuplicates_ is *true*, then
1. Perform ? IteratorBindingInitialization of _formals_ with arguments _iteratorRecord_ and *undefined*.
1. Let _usedEnv_ be *undefined*.
1. Else,
1. Perform ? IteratorBindingInitialization of _formals_ with arguments _iteratorRecord_ and _env_.
1. Let _usedEnv_ be _env_.
1. NOTE: The following step cannot return a ReturnCompletion because the only way such a completion can arise in expression position is by use of |YieldExpression|, which is forbidden in parameter lists by Early Error rules in <emu-xref href="#sec-generator-function-definitions-static-semantics-early-errors"></emu-xref> and <emu-xref href="#sec-async-generator-function-definitions-static-semantics-early-errors"></emu-xref>.
1. Perform ? IteratorBindingInitialization of _formals_ with arguments _iteratorRecord_ and _usedEnv_.
1. If _hasParameterExpressions_ is *false*, then
1. NOTE: Only a single Environment Record is needed for the parameters and top-level vars.
1. Let _instantiatedVarNames_ be a copy of the List _parameterBindings_.
Expand Down
Loading