code: function errorToExceptionCallback(cb) {
      var browser = this;
  
      return function errorWrapped(err) {
          if (err) throw err;
          if (cb) {
              cb.apply(browser, _.tail(arguments));
          }
      };
  }
docs: any error is thrown as an exception. remaining arguments are given to callback.