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

[Bug 24403] WebIDL callbacks should probably default to pushing a new entry settings object

From: <bugzilla@jessica.w3.org>
Date: Wed, 29 Jan 2014 17:06:17 +0000
To: public-script-coord@w3.org
Message-ID: <bug-24403-3890-tbqk1Hq58I@http.www.w3.org/Bugs/Public/>

--- Comment #7 from Bobby Holley (:bholley) <bobbyholley@gmail.com> ---
Ok, I think I remember what I was getting at in comment 4 when I was referring
to implicit Function conversion.

IIUC, callers can equivalently do:

foo.addEventListener("evt", func);
foo.addEventListener("evt", {handleEvent: func});

My understanding was that the bindings were supposed to implicitly box the
former into the latter. If that happens, where does the box get created? The
options I can think of are:
* The scope of |foo|
* The scope of |func|
* The scope of the caller

Depending on what the answer there is, we get a different entry point.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 29 January 2014 17:06:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:19 UTC