src/driver/utils.js
function errorToExceptionCallback(cb) {
    var browser = this;

    return function errorWrapped(err) {
        if (err) throw err;
        if (cb) {
            cb.apply(browser, _.tail(arguments));
        }
    };
}
function errorToExceptionCallback(cb) {
    var browser = this;

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