code: function handleError (errorCallback, target, message) {
    // call errorCallback if provided
    if (errorCallback) errorCallback(message)
    // based on target type...
    if (typeof target === 'function') {
      // return a function throwing an error to handle runtime access
      return function onError () {
        throw new Error(message)
      }
    } else {
      return false
    }
  }
docs: helper