W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > January 2011

[Bug 11085] Define what "this" value to use for setTimeout(function)

From: <bugzilla@jessica.w3.org>
Date: Tue, 11 Jan 2011 21:32:45 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Pclpd-0007Rd-Kt@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11085

--- Comment #2 from Cameron McCormack <cam@mcc.id.au> 2011-01-11 21:32:45 UTC ---
I think that's right.  (I am still not clear on all of the distinctions between
the Window and WindowProxy objects in the spec.  I notice that that section
talks only about Window objects.)  Since you mention [[Call]] directly, it
would be fine just to mention what the this value is at that point.  So,
something like:

  ... calls the aforementioned [[Call]] method with as its arguments the third
  and subsequent arguments to the invoked method (if any) and with BLAH as the
  *this* object, ...

where BLAH is the method context (if that is a Window) or the script's global
object (if it's a WorkerUtils).  Or maybe the script's global object is the
same for both of these cases?

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 11 January 2011 21:32:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 21:32:55 GMT