Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at

prototype Redirect 6


The RangeError.prototype property represents the prototype the RangeError constructor.

Property attributes of prototype Redirect 6
Writable No
Enumerable No
Configurable No


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


Specifies the function that created an instance's prototype.
Error name. Although ECMA-262 specifies that RangeError should provide its own message property, in SpiderMonkey, it inherits Error.prototype.message.
Error name. Inherited from Error.
Path to file that raised this error. Inherited from Error.
Line number in file that raised this error. Inherited from Error.
Column number in line that raised this error. Inherited from Error.
Stack trace. Inherited from Error.


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


Specification Status Comment
ECMAScript 3rd Edition. Standard Initial definition.
ECMAScript Language Specification 5.1th Edition (ECMA-262) Standard Defined as NativeError.prototype.
ECMAScript Language Specification 6th Edition (ECMA-262) Draft Defined as NativeError.prototype.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)

See also

Document Tags and Contributors

 Last updated by: Sheppy,