LookAtMySuitBot/js/node_modules/capture-stack-trace
Brett 5f2b208d42 c++ setup 2023-12-24 20:08:39 -05:00
..
index.js c++ setup 2023-12-24 20:08:39 -05:00
license c++ setup 2023-12-24 20:08:39 -05:00
package.json c++ setup 2023-12-24 20:08:39 -05:00
readme.md c++ setup 2023-12-24 20:08:39 -05:00

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.