80bd1ce4324a63460c33799de41234b1e716e247690ef34f7c33f0d37eb752590fc6a0279404ed23bdc5cbd5a33e23c14ef3c532a11d58798550189314206b 428 B

123456789101112131415
  1. 'use strict';
  2. var $TypeError = require('es-errors/type');
  3. var BigIntLeftShift = require('./leftShift');
  4. // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-signedRightShift
  5. module.exports = function BigIntSignedRightShift(x, y) {
  6. if (typeof x !== 'bigint' || typeof y !== 'bigint') {
  7. throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
  8. }
  9. return BigIntLeftShift(x, -y);
  10. };