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

[Bug 14887] Prototype of exception interface objects is Object.prototype in implementations, not Error.prototype

From: <bugzilla@jessica.w3.org>
Date: Mon, 21 Nov 2011 17:45:18 +0000
To: public-script-coord@w3.org
Message-Id: <E1RSXvi-0006JZ-8m@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14887

Travis Leithead [MSFT] <travil@microsoft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |travil@microsoft.com

--- Comment #1 from Travis Leithead [MSFT] <travil@microsoft.com> 2011-11-21 17:45:17 UTC ---
(In reply to comment #0)
> Object.prototype.isPrototypeOf(DOMException.prototype) is true in all browsers
> (IE9, Firefox 11a1, Chrome 17 dev, Opera 12.00).  4.9.2 in the spec says it
> should be Error.prototype, not Object.prototype.  If the spec is changed to
> match browsers here, .toString needs to be defined on the prototypes, and
> possibly .message as well.

Object.getPrototypeOf(Error.prototype) === Object.prototype

So, toString will already be available.

.message is already defined on Error.prototype (it's the empty string).

-- 
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, 21 November 2011 17:45:19 UTC

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