Urara-Blog/node_modules/.pnpm-store/v3/files/0a/f6b6bbb33286c34eec93485995d7bc1b587e71af3bce14cb690c8804ee0eb501e579887594fecb637e93c613fa5ec5e9d8220608198719966cc8c97cd02f73
2022-08-14 01:14:53 +08:00

18 lines
472 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-leftShift
module.exports = function BigIntLeftShift(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;
};