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

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