W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2014

[Bug 24248] Inconsistency between WebIDL callback function default this and JS strict mode default this

From: <bugzilla@jessica.w3.org>
Date: Fri, 10 Jan 2014 05:37:53 +0000
To: public-script-coord@w3.org
Message-ID: <bug-24248-3890-fNmvJQbX2B@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24248

--- Comment #6 from Boris Zbarsky <bzbarsky@mit.edu> ---
Some callbacks are in fact called with some other this value.  For example,
event handlers and callable event listeners are called with the event target as
the this value.  So always passing undefined wouldn't be correct either.

Of course if the callee is a bound function it'll just ignore the this value
passed to [[Call]], so they work no matter what.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Friday, 10 January 2014 05:37:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:51 UTC