ce54266e9da92e394df530bc9ad8197e78e9e82483769c85f52835bf2640b071e82897f0e1e5b066a5ec9583d62496a34745d0dd5e5fb94c92d6888e96ec5c 426 B

1234567891011121314
  1. 'use strict';
  2. var $TypeError = require('es-errors/type');
  3. var BigIntBitwiseOp = require('../BigIntBitwiseOp');
  4. // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseAND
  5. module.exports = function BigIntBitwiseAND(x, y) {
  6. if (typeof x !== 'bigint' || typeof y !== 'bigint') {
  7. throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
  8. }
  9. return BigIntBitwiseOp('&', x, y);
  10. };