Skip to content

Commit

Permalink
Editorial: Narrowing an assertion in SuperCall: super Arguments (#3466)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjg1119 authored and ljharb committed Jan 16, 2025
1 parent f55b180 commit 519149d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion esmeta-ignore.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"MakeMatchIndicesIndexPairArray",
"Record[SourceTextModuleRecord].ExecuteModule",
"Record[SourceTextModuleRecord].ResolveExport",
"SuperCall[0,0].Evaluation",
"TypedArrayGetElement",
"TypedArrayLength",
"TypedArraySetElement",
Expand Down
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -10695,7 +10695,7 @@ <h1>Function Environment Records</h1>
[[NewTarget]]
</td>
<td>
an Object or *undefined*
a constructor or *undefined*
</td>
<td>
If this Environment Record was created by the [[Construct]] internal method, [[NewTarget]] is the value of the [[Construct]] _newTarget_ parameter. Otherwise, its value is *undefined*.
Expand Down Expand Up @@ -19494,7 +19494,7 @@ <h1>Runtime Semantics: Evaluation</h1>
<emu-grammar>SuperCall : `super` Arguments</emu-grammar>
<emu-alg>
1. Let _newTarget_ be GetNewTarget().
1. Assert: _newTarget_ is an Object.
1. Assert: _newTarget_ is a constructor.
1. Let _func_ be GetSuperConstructor().
1. Let _argList_ be ? ArgumentListEvaluation of |Arguments|.
1. If IsConstructor(_func_) is *false*, throw a *TypeError* exception.
Expand Down

0 comments on commit 519149d

Please sign in to comment.