Urara-Blog/node_modules/.pnpm-store/v3/files/5e/33b315eed0b04399d310e27d6b6ad5d53ed9c4dd350c490aabc6ac0ba5b29b0cc3e7363b5daab14b130ec7538d3e37827e0f52f4f59ebdd8086b8ee71a9b69
2022-08-14 01:14:53 +08:00

17 lines
503 B
Text

'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var BigIntBitwiseOp = require('../BigIntBitwiseOp');
var Type = require('../Type');
// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseAND
module.exports = function BigIntBitwiseAND(x, y) {
if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') {
throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
}
return BigIntBitwiseOp('&', x, y);
};