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>

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.


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.4.0 : Friday, 17 January 2020 17:14:04 UTC