unsignedRightShift.js 432 B

12345678910111213
  1. 'use strict';
  2. var $TypeError = require('es-errors/type');
  3. // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-unsignedRightShift
  4. module.exports = function BigIntUnsignedRightShift(x, y) {
  5. if (typeof x !== 'bigint' || typeof y !== 'bigint') {
  6. throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
  7. }
  8. throw new $TypeError('BigInts have no unsigned right shift, use >> instead');
  9. };