lib/command/database/string/getbit.js
function validate(cmd, args, info) {
  AbstractCommand.prototype.validate.apply(this, arguments);
  var offset = parseInt('' + args[1]);
  if(isNaN(offset) || offset < 0 || offset > Constants.MAX_BIT_LEN) {
    throw IntegerRange;
  }
  args[1] = offset;
}
function validate(cmd, args, info) {
  AbstractCommand.prototype.validate.apply(this, arguments);
  var offset = parseInt('' + args[1]);
  if(isNaN(offset) || offset < 0 || offset > Constants.MAX_BIT_LEN) {
    throw IntegerRange;
  }
  args[1] = offset;
}
function validate ( cmd , args , info ) { AbstractCommand . prototype . validate . apply ( this , arguments ) ; var offset = parseInt ( '' + args [ 1 ] ) ; if ( isNaN ( offset ) || offset < 0 || offset > Constants . MAX_BIT_LEN ) { throw IntegerRange ; } args [ 1 ] = offset ; }
Validate the GETBIT command.
Validate the GETBIT command .