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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12635

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
12320.

-- 
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