Bakhtina Sofya b84cb877be 1st comm vor 3 Wochen
..
index.js b84cb877be 1st comm vor 3 Wochen
license b84cb877be 1st comm vor 3 Wochen
package.json b84cb877be 1st comm vor 3 Wochen
readme.md b84cb877be 1st comm vor 3 Wochen

readme.md

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.