Permalink
Browse files

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.
  • Loading branch information...
annevk authored and domenic committed Oct 11, 2018
1 parent 8c0d53a commit b4edc09fe9005cf13bd011a062f539dddee14935
Showing with 11 additions and 3 deletions.
  1. +11 −3 source
View
14 source
@@ -79299,12 +79299,15 @@ interface <dfn>BarProp</dfn> {
<li><p>If ! <span>IsPlatformObjectSameOrigin</span>(<var>W</var>) is true, then return ?
<span>OrdinaryGet</span>(<b>this</b>, <var>P</var>, <var>Receiver</var>).</p></li>
<!-- https://github.com/tc39/ecma262/issues/394 -->
<li><p>Return ? <span>CrossOriginGet</span>(<b>this</b>, <var>P</var>,
<var>Receiver</var>).</p></li>
</ol>
<p class="note"><b>this</b> is passed rather than <var>W</var> as <span>OrdinaryGet</span> and
<span>CrossOriginGet</span> will invoke the <a
href="#windowproxy-getownproperty">[[GetOwnProperty]]</a> internal method.</p>
<h4 id="windowproxy-set">[[Set]] ( <var>P</var>, <var>V</var>, <var>Receiver</var> )</h4>
<ol>
@@ -79313,13 +79316,18 @@ interface <dfn>BarProp</dfn> {
<b>this</b>.</p></li>
<li><p>If ! <span>IsPlatformObjectSameOrigin</span>(<var>W</var>) is true, then return ?
<span>OrdinarySet</span>(<var>W</var>, <b>this</b>, <var>Receiver</var>).</p></li>
<!-- https://github.com/tc39/ecma262/issues/394 -->
<span>OrdinarySet</span>(<b>this</b>, <var>P</var>, <var>V</var>, <var>Receiver</var>).</p></li>
<li><p>Return ? <span>CrossOriginSet</span>(<b>this</b>, <var>P</var>, <var>V</var>,
<var>Receiver</var>).</p></li>
</ol>
<p class="note"><b>this</b> is passed rather than <var>W</var> as <span>OrdinarySet</span> and
<span>CrossOriginSet</span> will invoke the <a
href="#windowproxy-getownproperty">[[GetOwnProperty]]</a> internal method.
<span>OrdinarySet</span> will also invoke the <a
href="#windowproxy-defineownproperty">[[DefineOwnProperty]]</a> internal method.</p>
<h4 id="windowproxy-delete">[[Delete]] ( <var>P</var> )</h4>
<ol>

0 comments on commit b4edc09

Please sign in to comment.