[Bug 14813] Prototype of interface objects is Object.prototype in implementations, not Function.prototype

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

Brendan Eich <brendan@mozilla.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brendan@mozilla.org

--- Comment #3 from Brendan Eich <brendan@mozilla.org> 2011-11-13 22:30:14 UTC ---
(In reply to comment #2)
> On the other hand, trying to `new` a Node, gives "Illegal constructor", not
> "object is not a function".

Non-function objects can have [[Construct]] internal methods, too -- just not
any defined by ECMA-262 itself that do not have [[Construct]]. So we could make
new work if we wanted to.

/be

-- 
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 Sunday, 13 November 2011 22:30:21 UTC