Urara-Blog/node_modules/.pnpm-store/v3/files/e5/b1e217cc3ff6a840aee00507f1e47f70122f31c22827e2b0e34b26ba4b3939c243d1fae2e26bca0a632817bd05f4d5bfce7cf17a5c954c701b20878efd4be7
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-bitwiseXOR
module.exports = function BigIntBitwiseXOR(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);
};