33 lines
376 B
Markdown
33 lines
376 B
Markdown
# capture-stack-trace
|
|
|
|
> Ponyfill for Error.captureStackTrace
|
|
|
|
|
|
## Install
|
|
|
|
```
|
|
$ npm install --save capture-stack-trace
|
|
```
|
|
|
|
|
|
## Usage
|
|
|
|
```js
|
|
var captureStackTrace = require('capture-stack-trace');
|
|
|
|
captureStackTrace({});
|
|
// => {stack: ...}
|
|
```
|
|
|
|
|
|
## API
|
|
|
|
### captureStackTrace(error)
|
|
|
|
#### error
|
|
|
|
*Required*
|
|
Type: `Object`
|
|
|
|
Target Object, that will recieve stack property.
|