The initial value for this property is the string primitive "Error". The ECMA standard suggests that this property can be assigned with a different name for each instance of the Error object.
For native errors that are subclassed from this Error object, the name property will be the name of that object class and will be one of the following:
EvalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
Prev | Home | Next |
Error.message | Up | Error.number |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |