W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

[Bug 16471] Exception "type"

From: <bugzilla@jessica.w3.org>
Date: Wed, 21 Mar 2012 21:55:18 +0000
To: public-script-coord@w3.org
Message-Id: <E1SATV0-0003eH-V8@jessica.w3.org>

--- Comment #4 from Marcos Caceres <w3c@marcosc.com> 2012-03-21 21:55:17 UTC ---
Hi Travis,
Ok, I see where I am getting confused between type and name:

For clarity, Error.name is: 

The key part that is confusing is that: "Exceptions also have an associated
type, also a DOMString, which is exposed on an exception object in a language
binding-specific manner". 

But then I expected a type attribute... which is the name:

There must be a property named “name” on the exception interface prototype
object with attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } and whose value is the identifier of the exception.

If an exception is thrown with a specific type, then the rules in section 4.11
below will create a shadowing “name” property on the exception object itself.

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 Wednesday, 21 March 2012 21:55:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:05 UTC