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: Fri, 09 Dec 2011 05:23:51 +0000
To: public-script-coord@w3.org
Message-Id: <E1RYsw3-0007In-1p@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=14813

--- Comment #8 from Cameron McCormack <cam@mcc.id.au> 2011-12-09 05:23:49 UTC ---
Having them be function objects is closer to natively defined classes, yes.  It
also lets them respond to [[HasInstance]] without any hackery.  Having function
objects with Object.prototype as their [[Prototype]] would be weird, so better
to leave it as Function.prototype.

It was done in bug 12458.  You can see the thoughts of some implementors there.
 I have not had pushback since bug 12458 comment 13, but it might be that the
change was not publicised widely enough and people haven't tried implementing
it to check compatibility just yet.

-- 
Configure bugmail: https://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 Friday, 9 December 2011 05:23:56 UTC

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