src/driver/native.js
function exposeNative(Browser, command, exposed) {
    if (_.isNumber(exposed)) {
        exposed = command;
    }

    Browser.prototype[exposed] = function () {
        ensureDriverCommand.call(this, command, 'exposeNative');
        var args = wrapArguments.call(this, arguments, errorToExceptionCallback);
        this._driver[command].apply(this._driver, args);

        return this;
    };
}
function exposeNative(Browser, command, exposed) {
    if (_.isNumber(exposed)) {
        exposed = command;
    }

    Browser.prototype[exposed] = function () {
        ensureDriverCommand.call(this, command, 'exposeNative');
        var args = wrapArguments.call(this, arguments, errorToExceptionCallback);
        this._driver[command].apply(this._driver, args);

        return this;
    };
}
function exposeNative ( Browser , command , exposed ) { if ( _ . isNumber ( exposed ) ) { exposed = command ; } Browser . prototype [ exposed ] = function ( ) { ensureDriverCommand . call ( this , command , 'exposeNative' ) ; var args = wrapArguments . call ( this , arguments , errorToExceptionCallback ) ; this . _driver [ command ] . apply ( this . _driver , args ) ; return this ; } ; }
exposed methods handle errors as exceptions.
exposed methods handle errors as exceptions .