Skip to content

Commit

Permalink
pass *this* value to SetterThatIgnoresPrototypeProperties (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Dec 4, 2023
1 parent 30b3501 commit b9f88b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec.html
Expand Up @@ -110,6 +110,7 @@ <h1>Abstract Operations</h1>
<emu-clause id="sec-SetterThatIgnoresPrototypeProperties" type="abstract operation">
<h1>
SetterThatIgnoresPrototypeProperties (
_this_: an ECMAScript language value,
_home_: an Object,
_p_: a property key,
_v_: an ECMAScript language value,
Expand All @@ -118,7 +119,7 @@ <h1>
<dl class="header">
</dl>
<emu-alg>
1. Let _O_ be ? RequireObjectCoercible(*this* value).
1. Let _O_ be ? RequireObjectCoercible(_this_).
1. If _O_ is _home_, then
1. NOTE: Throwing here emulates assignment to a non-writable data property on the _home_ object in strict mode code.
1. Throw a *TypeError* exception.
Expand Down Expand Up @@ -327,7 +328,7 @@ <h1>get Iterator.prototype.constructor</h1>
<h1>set Iterator.prototype.constructor</h1>
<p>The value of the [[Set]] attribute is a built-in function that takes an argument _v_. It performs the following steps when called:</p>
<emu-alg>
1. Perform ? SetterThatIgnoresPrototypeProperties(%Iterator.prototype%, *"constructor"*, _v_).
1. Perform ? SetterThatIgnoresPrototypeProperties(*this* value, %Iterator.prototype%, *"constructor"*, _v_).
1. Return *undefined*.
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -622,7 +623,7 @@ <h1>get Iterator.prototype [ @@toStringTag ]</h1>
<h1>set Iterator.prototype [ @@toStringTag ]</h1>
<p>The value of the [[Set]] attribute is a built-in function that takes an argument _v_. It performs the following steps when called:</p>
<emu-alg>
1. Perform ? SetterThatIgnoresPrototypeProperties(%Iterator.prototype%, %Symbol.toStringTag%, _v_).
1. Perform ? SetterThatIgnoresPrototypeProperties(*this* value, %Iterator.prototype%, %Symbol.toStringTag%, _v_).
1. Return *undefined*.
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit b9f88b7

Please sign in to comment.