bd8845fbe9f1062068541f7818796f626694ce4a15392b6292732df070fdddb2ff6b92ff0b07b335616c25aa22f4c232618013cc75683c31cf2c5603dc9eef 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-bitwiseXOR
  5. module.exports = function BigIntBitwiseXOR(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. };