File "save-stack.js"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/lib/utils/save-stack.js
File size: 349 bytes
MIME-type: text/plain
Charset: utf-8
'use strict'
var inherits = require('inherits')
module.exports = SaveStack
function SaveStack (fn) {
Error.call(this)
Error.captureStackTrace(this, fn || SaveStack)
}
inherits(SaveStack, Error)
SaveStack.prototype.completeWith = function (er) {
this['__' + 'proto' + '__'] = er
this.stack = this.stack + '\n\n' + er.stack
return this
}