Urara-Blog/node_modules/.pnpm-store/v3/files/66/20e4bacfedd1980bb36527c0026ab9cbc817b4800fd6ea2a6c863b1b2386bedad88d2bddd5f62a9b517fcd425c714c5910e1ee9136d271bb986f4474ea7aaf
2022-08-14 01:14:53 +08:00

18 lines
505 B
Text

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