Ponyfill for Error.captureStackTrace
$ npm install --save capture-stack-trace
var captureStackTrace = require('capture-stack-trace');
captureStackTrace({});
// => {stack: ...}
Required
Type: Object
Target Object, that will recieve stack property.
MIT © Vsevolod Strukchinsky