src/com/google/javascript/jscomp/TypeValidator.java
/**
   * Expect the type to be a valid operand to a bitwise operator. This includes
   * numbers, any type convertible to a number, or any other primitive type
   * (undefined|null|boolean|string).
   */
Expect the type to be a valid operand to a bitwise operator. This includes
numbers, any type convertible to a number, or any other primitive type
(undefined|null|boolean|string).
Expect the type to be a valid operand to a bitwise operator . This includes numbers any type convertible to a number or any other primitive type ( undefined|null|boolean|string ) .
void expectBitwiseable(NodeTraversal t, Node n, JSType type, String msg) {
    if (!type.matchesNumberContext() && !type.isSubtypeOf(allBitwisableValueTypes)) {
      mismatch(t, n, msg, type, allBitwisableValueTypes);
    } else {
      expectNumberStrict(n, type, msg);
    }
  }
void expectBitwiseable ( NodeTraversal t , Node n , JSType type , String msg ) { if ( ! type . matchesNumberContext ( ) && ! type . isSubtypeOf ( allBitwisableValueTypes ) ) { mismatch ( t , n , msg , type , allBitwisableValueTypes ) ; } else { expectNumberStrict ( n , type , msg ) ; } }
Expect the type to be a valid operand to a bitwise operator.
Expect the type to be a valid operand to a bitwise operator .