shim/browser/aschema.js
function validateToThrow() {
    var s = this;
    var error = s.validate.apply(s, arguments);

    if (error) {
      throw error;
    }
  }
function validateToThrow() {
    var s = this;
    var error = s.validate.apply(s, arguments);

    if (error) {
      throw error;
    }
  }
function validateToThrow ( ) { var s = this ; var error = s . validate . apply ( s , arguments ) ; if ( error ) { throw error ; } }
Throw an error if validate failed
@throws Error
Throw an error if validate failed