W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

[Bug 12635] calling Functions corresponding to IDL operations/attributes on unexpected objects should throw

From: <bugzilla@jessica.w3.org>
Date: Mon, 09 May 2011 03:07:00 +0000
To: public-script-coord@w3.org
Message-Id: <E1QJGoG-000368-Nk@jessica.w3.org>

Cameron McCormack <cam@mcc.id.au> changed:

           What    |Removed                     |Added
         Depends on|                            |12320

--- Comment #5 from Cameron McCormack <cam@mcc.id.au> 2011-05-09 03:06:59 UTC ---
I've added back the check (which I am sure used to be in there) for calling
Functions that correspond to IDL operations so that it throws a TypeError if
the 'this' object is not an object that implements the relevant interface. 
(This check was already present for most of the other Function cases, like
getter/setter Functions.)  Whether an object "implements" a given interface is
still kinda hand-wavey, but the intention is to throw for cases like comment 4.
 I'll try to come up with a rigorous definition of "implements" as part of bug

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Monday, 9 May 2011 03:07:02 UTC

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