robert2206 8ad867f7a5 commit inicial 8 years ago
..
index.js 8ad867f7a5 commit inicial 8 years ago
package.json 8ad867f7a5 commit inicial 8 years ago
readme.md 8ad867f7a5 commit inicial 8 years ago

readme.md

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