MDN wants to talk to developers like you: https://qsurvey.mozilla.com/s3/8d22564490d8

JS_GetErrorPrototype

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,