Skip to content

Commit b4edc09

Browse files
annevkdomenic
authored andcommitted
Correct WindowProxy's [[Set]]
Also: * Explain why [[Get]] and [[Set]] pass this instead of W. * Remove a source reference to an addressed JavaScript issue. Fixes #4064.
1 parent 8c0d53a commit b4edc09

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

source

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79299,12 +79299,15 @@ interface <dfn>BarProp</dfn> {
7929979299

7930079300
<li><p>If ! <span>IsPlatformObjectSameOrigin</span>(<var>W</var>) is true, then return ?
7930179301
<span>OrdinaryGet</span>(<b>this</b>, <var>P</var>, <var>Receiver</var>).</p></li>
79302-
<!-- https://github.com/tc39/ecma262/issues/394 -->
7930379302

7930479303
<li><p>Return ? <span>CrossOriginGet</span>(<b>this</b>, <var>P</var>,
7930579304
<var>Receiver</var>).</p></li>
7930679305
</ol>
7930779306

79307+
<p class="note"><b>this</b> is passed rather than <var>W</var> as <span>OrdinaryGet</span> and
79308+
<span>CrossOriginGet</span> will invoke the <a
79309+
href="#windowproxy-getownproperty">[[GetOwnProperty]]</a> internal method.</p>
79310+
7930879311
<h4 id="windowproxy-set">[[Set]] ( <var>P</var>, <var>V</var>, <var>Receiver</var> )</h4>
7930979312

7931079313
<ol>
@@ -79313,13 +79316,18 @@ interface <dfn>BarProp</dfn> {
7931379316
<b>this</b>.</p></li>
7931479317

7931579318
<li><p>If ! <span>IsPlatformObjectSameOrigin</span>(<var>W</var>) is true, then return ?
79316-
<span>OrdinarySet</span>(<var>W</var>, <b>this</b>, <var>Receiver</var>).</p></li>
79317-
<!-- https://github.com/tc39/ecma262/issues/394 -->
79319+
<span>OrdinarySet</span>(<b>this</b>, <var>P</var>, <var>V</var>, <var>Receiver</var>).</p></li>
7931879320

7931979321
<li><p>Return ? <span>CrossOriginSet</span>(<b>this</b>, <var>P</var>, <var>V</var>,
7932079322
<var>Receiver</var>).</p></li>
7932179323
</ol>
7932279324

79325+
<p class="note"><b>this</b> is passed rather than <var>W</var> as <span>OrdinarySet</span> and
79326+
<span>CrossOriginSet</span> will invoke the <a
79327+
href="#windowproxy-getownproperty">[[GetOwnProperty]]</a> internal method.
79328+
<span>OrdinarySet</span> will also invoke the <a
79329+
href="#windowproxy-defineownproperty">[[DefineOwnProperty]]</a> internal method.</p>
79330+
7932379331
<h4 id="windowproxy-delete">[[Delete]] ( <var>P</var> )</h4>
7932479332

7932579333
<ol>

0 commit comments

Comments
 (0)