Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JS_GetErrorPrototype

This article needs a technical review. How you can help.

This article covers features introduced in SpiderMonkey 38

Return the original value of Error.prototype.

Syntax

JSObject *
JS_GetErrorPrototype(JSContext *cx);
Name Type Description
cx JSContext * Pointer to a JS context whose errors should be reported via your function. Other contexts in the same runtime can have their own error reporting functions.

Description

JS_GetErrorPrototype returns the original value of Error.prototype from the global object of the current compartment of cx.

See Also

Document Tags and Contributors

 Contributors to this page: kscarfone, arai
 Last updated by: kscarfone,