Skip to content

Commit

Permalink
Editorial: Narrowing an assertion in SuperCall: super Arguments (tc39…
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 fecdbc9
Showing 1 changed file with 2 additions and 2 deletions.
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 fecdbc9

Please sign in to comment.