Skip to content

Commit

Permalink
Normative: Fix extending null
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Oct 31, 2018
1 parent ff45fd8 commit 6fc9a49
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -12540,13 +12540,15 @@ <h1>Runtime Semantics: Evaluation</h1>
1. Let _newTarget_ be GetNewTarget().
1. Assert: Type(_newTarget_) is Object.
1. Let _func_ be ? GetSuperConstructor().
1. Let _thisER_ be GetThisEnvironment().
1. If _func_ is *null*, Return ? thisER.GetThisBinding().
1. Let _argList_ be ArgumentListEvaluation of |Arguments|.
1. ReturnIfAbrupt(_argList_).
1. Let _thisER_ be GetThisEnvironment().
1. If _func_ is *null*, Return ? thisER.GetThisBinding().
1. Let _result_ be ? Construct(_func_, _argList_, _newTarget_).
1. Return ? _thisER_.BindThisValue(_result_).
</emu-alg>

<emu-note>Even if _func_ is *null*, |Arguments| will be evaluated.</emu-note>
</emu-clause>

<emu-clause id="sec-getsuperconstructor" aoid="GetSuperConstructor">
Expand Down

0 comments on commit 6fc9a49

Please sign in to comment.