code: void expectBitwiseable(Node n, JSType type, String msg) {
      if (!type.matchesNumberContext() && !type.isSubtypeOf(allBitwisableValueTypes)) {
        mismatch(n, msg, type, allBitwisableValueTypes);
      } else {
        expectNumberStrict(n, type, msg);
      }
    }
docs: 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).