[html5] r5879 - [giow] (2) Define 'this' for setTimeout functions Fixing http://www.w3.org/Bugs/ [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Feb 11 15:50:32 PST 2011
Author: ianh
Date: 2011-02-11 15:50:31 -0800 (Fri, 11 Feb 2011)
New Revision: 5879
Modified:
complete.html
index
source
Log:
[giow] (2) Define 'this' for setTimeout functions
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11085
Modified: complete.html
===================================================================
--- complete.html 2011-02-11 23:26:18 UTC (rev 5878)
+++ complete.html 2011-02-11 23:50:31 UTC (rev 5879)
@@ -65697,11 +65697,16 @@
<ol><li>
<p>If the first argument to the invoked method is an object that
- has an internal [[Call]] method, then return a <a href=#concept-task title=concept-task>task</a> that checks if the entry for <var title="">handle</var> in <var title="">list</var> has been cleared,
- and if it has not, calls the aforementioned [[Call]] method with
- as its arguments the third and subsequent arguments to the invoked
- method (if any), and abort these steps.</p>
+ has an internal [[Call]] method, then return a <a href=#concept-task title=concept-task>task</a> that checks if the entry for <var title="">handle</var> in <var title="">list</var> has been
+ cleared, and if it has not, calls the aforementioned [[Call]]
+ method with as its arguments the third and subsequent arguments to
+ the invoked method (if any), and with an undefined <var title="">thisArg</var>, and abort these steps. <a href=#refsECMA262>[ECMA262]</a></p>
+ <p class=note>Setting <var title="">thisArg</var> to undefined
+ means that the function code will be executed with the <code title="">this</code> keyword bound to the <code><a href=#windowproxy>WindowProxy</a></code>
+ or the <code><a href=#workerglobalscope>WorkerGlobalScope</a></code> object, as if the code was
+ running in the global scope.</p>
+
<p>Otherwise, continue with the remaining steps.</p>
</li>
Modified: index
===================================================================
--- index 2011-02-11 23:26:18 UTC (rev 5878)
+++ index 2011-02-11 23:50:31 UTC (rev 5879)
@@ -65700,11 +65700,16 @@
<ol><li>
<p>If the first argument to the invoked method is an object that
- has an internal [[Call]] method, then return a <a href=#concept-task title=concept-task>task</a> that checks if the entry for <var title="">handle</var> in <var title="">list</var> has been cleared,
- and if it has not, calls the aforementioned [[Call]] method with
- as its arguments the third and subsequent arguments to the invoked
- method (if any), and abort these steps.</p>
+ has an internal [[Call]] method, then return a <a href=#concept-task title=concept-task>task</a> that checks if the entry for <var title="">handle</var> in <var title="">list</var> has been
+ cleared, and if it has not, calls the aforementioned [[Call]]
+ method with as its arguments the third and subsequent arguments to
+ the invoked method (if any), and with an undefined <var title="">thisArg</var>, and abort these steps. <a href=#refsECMA262>[ECMA262]</a></p>
+ <p class=note>Setting <var title="">thisArg</var> to undefined
+ means that the function code will be executed with the <code title="">this</code> keyword bound to the <code><a href=#windowproxy>WindowProxy</a></code>
+ or the <code>WorkerGlobalScope</code> object, as if the code was
+ running in the global scope.</p>
+
<p>Otherwise, continue with the remaining steps.</p>
</li>
Modified: source
===================================================================
--- source 2011-02-11 23:26:18 UTC (rev 5878)
+++ source 2011-02-11 23:50:31 UTC (rev 5879)
@@ -74797,11 +74797,19 @@
<p>If the first argument to the invoked method is an object that
has an internal [[Call]] method, then return a <span
title="concept-task">task</span> that checks if the entry for <var
- title="">handle</var> in <var title="">list</var> has been cleared,
- and if it has not, calls the aforementioned [[Call]] method with
- as its arguments the third and subsequent arguments to the invoked
- method (if any), and abort these steps.</p>
+ title="">handle</var> in <var title="">list</var> has been
+ cleared, and if it has not, calls the aforementioned [[Call]]
+ method with as its arguments the third and subsequent arguments to
+ the invoked method (if any), and with an undefined <var
+ title="">thisArg</var>, and abort these steps. <a
+ href="#refsECMA262">[ECMA262]</a></p>
+ <p class="note">Setting <var title="">thisArg</var> to undefined
+ means that the function code will be executed with the <code
+ title="">this</code> keyword bound to the <code>WindowProxy</code>
+ or the <code>WorkerGlobalScope</code> object, as if the code was
+ running in the global scope.</p>
+
<p>Otherwise, continue with the remaining steps.</p>
</li>
More information about the Commit-Watchers
mailing list