Urara-Blog/node_modules/.pnpm-store/v3/files/5c/1210426875deef7c6d15486f81613b5227721353d4234a7217f8cd21dfa536dd4d6241a9e1669c3a2c914b402c78efd93c688744b2ac8a892ed01d79193003
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-multiply
module.exports = function BigIntMultiply(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;
};