29da66412be1bd000d237c73222660743ebf773426b53714e6df85089e74df38fe2e898626b7ecf64dc08cd077f32028f4535da04b4e7da7964e89b4a5d131 386 B

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