Glossary Term
Error.captureStackTrace()
The Error.captureStackTrace() static method installs stack trace information on a provided object as the stack property.
Return value: The object is modified in-place with an extra own property called stack defined, whose string value follows the same format as Error.prototype.stack. This property is non-enumerable and configurable. In V8, it is a getter-setter pair. In SpiderMonkey and JavaScriptCore, it is a data property that is writable.
Parameters: object The object on which to add the stack property. constructor A function, typically the constructor where the object was created. When collecting the stack trace, all frames above the topmost call to this function, including that call, are left out of the stack trace.
Syntax example: Error.captureStackTrace(object)
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
