import { computeValue } from "../../../core";
import { assert, isNil, isNumber } from "../../../util";
const $bitNot = (obj, expr, options) => {
  const n = computeValue(obj, expr, null, options);
  if (isNil(n)) return null;
  assert(isNumber(n), "$bitNot: expression must evaluate to a number.");
  return ~n;
};
export {
  $bitNot
};
