Skip to content

Latest commit

 

History

History

capture-stack-trace

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

capture-stack-trace Build Status

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