mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 15:04:45 +00:00
591 B
591 B
capture-stack-trace
Ponyfill for Error.captureStackTrace
Install
$ npm install --save capture-stack-trace
Usage
var captureStackTrace = require('capture-stack-trace');
captureStackTrace({});
// => {stack: ...}
API
captureStackTrace(error)
error
Required
Type: Object
Target Object, that will recieve stack property.
License
MIT © Vsevolod Strukchinsky