[Bug 16471] Exception "type"

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16471

--- 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: 
http://es5.github.com/#x15.11.4.2

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.

Note
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