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

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

From: <bugzilla@jessica.w3.org>
Date: Sun, 13 Nov 2011 22:30:15 +0000
To: public-script-coord@w3.org
Message-Id: <E1RPiZ5-0004zk-6p@jessica.w3.org>
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

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