"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/npm/lib/utils/save-stack.js" (8 Mar 2017, 349 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 'use strict'
    2 var inherits = require('inherits')
    3 
    4 module.exports = SaveStack
    5 
    6 function SaveStack (fn) {
    7   Error.call(this)
    8   Error.captureStackTrace(this, fn || SaveStack)
    9 }
   10 inherits(SaveStack, Error)
   11 
   12 SaveStack.prototype.completeWith = function (er) {
   13   this['__' + 'proto' + '__'] = er
   14   this.stack = this.stack + '\n\n' + er.stack
   15   return this
   16 }