Bakhtina Sofya b84cb877be 1st comm 2 هفته پیش
..
index.js b84cb877be 1st comm 2 هفته پیش
license b84cb877be 1st comm 2 هفته پیش
package.json b84cb877be 1st comm 2 هفته پیش
readme.md b84cb877be 1st comm 2 هفته پیش

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.