Sha256: c2e81957b638d1b70a7a2b7da8862c7d1209cea6504b0bcdaa2cd48fbd5f91da
Contents?: true
Size: 505 Bytes
Versions: 112
Compression:
Stored size: 505 Bytes
Contents
'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); };
Version data entries
112 entries across 30 versions & 4 rubygems