b16d7512584a6f1c1994bbaaefb71d2c4b74e96bd6cb440938a9876fcecb1ba5aa3690695984706cbf08cc91cef50aad77fe51943c3cb61763655fb0a32911 391 B

1234567891011121314
  1. 'use strict';
  2. var $TypeError = require('es-errors/type');
  3. // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-multiply
  4. module.exports = function BigIntMultiply(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. };