code: function noOp (error) {
      if (error == null) return
      error = pruneErrorStack(error)
      nextTick(function () {
        if (isFunction(thunks.onerror)) thunks.onerror(error)
        else throw error
      })
    }
docs: /* istanbul ignore next