Why does the specification state "Error instances have no special properties"?

The ES5 specification states:

| 15.11.5 Properties of Error Instances
| Error instances inherit properties from the Error prototype
| object and their [[Class]] internal property value is
| "Error". Error instances have no special properties.

However error instances do have an own property: message. The value
obviously is not shared in the prototype (that would be a mistake).

javascript: alert(new Error("foo").hasOwnProperty("message"));

true

Garrett
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to