65fd30cb314cf7e4239c94b52b3970094ff672339b3142eecf42e027b60f6363c19d864d5bfd66e9fe09153405121db9edacc2ef2bfead3bb8e81c879a372b 394 B

1234567891011121314
  1. 'use strict';
  2. var $TypeError = require('es-errors/type');
  3. // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-leftShift
  4. module.exports = function BigIntLeftShift(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. // shortcut for the actual spec mechanics
  9. return x << y;
  10. };