D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
alt-nodejs8
/
root
/
lib
/
node_modules
/
npm
/
lib
/
utils
/
Filename :
save-stack.js
back
Copy
'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 }