code: function wrap(callback, name) {
    var isLST
      , stack
      , d
  
    if ('function' !== typeof callback || callback && callback.name === '_trycatchOnError') return callback
  
    isLST = options['long-stack-traces']
    d = process.domain
    if (isLST) {
      stack = getStack(d)
    }
  
    // Inherit from callback for when properties are added
    newCallback.__proto__ = callback
    return newCallback
  
    function newCallback() {
      if (isLST && d) d.currentStack = stack
  
      runInDomain(d, callback, trycatchitApply, [this, arguments])
    }
  }
docs: Generate a new callback Ensure it runs in the same domain