mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-26 23:10:18 +00:00
push all website files
This commit is contained in:
16
website/node_modules/npm/lib/utils/save-stack.js
generated
vendored
Normal file
16
website/node_modules/npm/lib/utils/save-stack.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'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
|
||||
}
|
Reference in New Issue
Block a user