Visit Mozilla.org

Core JavaScript 1.5 Reference:Global Objects:EvalError:prototype

From MDC


Contents

[edit] Summary

Represents the prototype the EvalError constructor.

[edit] Description

All EvalError instances inherit from EvalError.prototype. You can use the prototype to add properties or methods to all instances.

[edit] Properties

constructor
Specifies the function that created an instance's prototype.
name
Error name.
Note: Although ECMA-262 specifies that EvalError should provide its own message property, in SpiderMonkey, it inherits Error.prototype.message.

Properties inherited from Error.prototype
fileName, lineNumber, message, name, number, stack

[edit] Methods

Although the EvalError prototype object does not contain any methods of its own, EvalError instances do inherit some methods through the prototype chain.

Methods inherited from Error.prototype
toSource, toString

Methods inherited from Object.prototype
__defineGetter__, __defineSetter__, hasOwnProperty, isPrototypeOf, __lookupGetter__, __lookupSetter__, __noSuchMethod__, propertyIsEnumerable, unwatch, valueOf, watch

[edit] See also