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

[Bug 12458] Interface objects should be Functions

From: <bugzilla@jessica.w3.org>
Date: Mon, 23 May 2011 03:48:33 +0000
To: public-script-coord@w3.org
Message-Id: <E1QOM89-0005s2-5E@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12458

--- Comment #11 from Mark S. Miller <erights@gmail.com> 2011-05-23 03:48:32 UTC ---
(In reply to comment #10)
> Another point is that interface objects also have to respond to [[HasInstance]]
> (so that you can do `document instanceof Node`), which for native objects is
> only defined for Functions.  The current Proxy proposal does not support a trap
> for [[HasInstance]], 

http://wiki.ecmascript.org/doku.php?id=strawman:proxy_instanceof
is a strawman that may enable that. Not accepted yet, so just FYI.


> nor does it have trap that would allow an interface object
> implemented as a Function object to return "object" when typeof is applied to
> it.  This is another issue that would prevent pure JS implementations of the
> DOM, which some people want to do.

-- 
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, 23 May 2011 03:48:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC