Urara-Blog/node_modules/.pnpm-store/v3/files/cb/5f591c3bef412d72616db49a0c37c7684e3ebc3eaad5066235ba9e815fed217872142ddade0b6e08061f670d6802e421ab731b857a7c627a3276125f70333f
2022-08-14 01:14:53 +08:00

18 lines
469 B
Text

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