Skip to content

Commit

Permalink
[giow] (2) 'this' in the global scope in JS shouldn't return the wind…
Browse files Browse the repository at this point in the history
…ow object, it should return the proxy. Hopefully one day this'll move to the ES specs.

git-svn-id: http://svn.whatwg.org/webapps@2811 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 13, 2009
1 parent f59a9fa commit fbc6719
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index
Expand Up @@ -37677,6 +37677,11 @@ interface <dfn id=window>Window</dfn> {
empty object, it can't do anything that interacts with the
environment.</p>

<p>If the <a href="#script's-global-object">script's global object</a> is a
<code><a href=#window>Window</a></code> object, then in JavaScript, the <code title="">this</code> keyword in the global scope must, contrary to
the ECMAScript specification, return the <code><a href=#window>Window</a></code>
object's <code><a href=#windowproxy>WindowProxy</a></code> object.</p>

</dd>

<dt>A relationship with the <dfn id="script's-browsing-context">script's browsing context</dfn></dt>
Expand Down
6 changes: 6 additions & 0 deletions source
Expand Up @@ -40213,6 +40213,12 @@ interface <dfn>Window</dfn> {
empty object, it can't do anything that interacts with the
environment.</p>

<p>If the <span>script's global object</span> is a
<code>Window</code> object, then in JavaScript, the <code
title="">this</code> keyword in the global scope must, contrary to
the ECMAScript specification, return the <code>Window</code>
object's <code>WindowProxy</code> object.</p>

</dd>

<dt>A relationship with the <dfn>script's browsing context</dfn></dt>
Expand Down

0 comments on commit fbc6719

Please sign in to comment.