Current Path : /lib/node_modules/npm/node_modules/capture-stack-trace/ |
Current File : //lib/node_modules/npm/node_modules/capture-stack-trace/index.js |
'use strict'; module.exports = Error.captureStackTrace || function (error) { var container = new Error(); Object.defineProperty(error, 'stack', { configurable: true, get: function getStack() { var stack = container.stack; Object.defineProperty(this, 'stack', { value: stack }); return stack; } }); };