Urara-Blog/node_modules/.pnpm-store/v3/files/be/62100d7089f585e65ae39ee2a0301b5402a71c11024a4775ec3bb9f046e86839af537295e64e6b8bd9f190818ef891961f0e6e0fe656f3e991c51e770a425e
2022-08-14 01:14:53 +08:00

18 lines
486 B
Text

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