Urara-Blog/node_modules/.pnpm-store/v3/files/93/bf2f19a24a90bdbc15699e137c5e388d1b16ada9dda8d2ecb0b6882d22b3c84277b6d248170b11368f0a404b1e05d98354dfb5de26fa2e98fbcc48b04fb373
2022-08-14 01:14:53 +08:00

17 lines
501 B
Text

'use strict';
var GetIntrinsic = require('get-intrinsic');
var $TypeError = GetIntrinsic('%TypeError%');
var BigIntBitwiseOp = require('../BigIntBitwiseOp');
var Type = require('../Type');
// https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseOR
module.exports = function BigIntBitwiseOR(x, y) {
if (Type(x) !== 'BigInt' || Type(y) !== 'BigInt') {
throw new $TypeError('Assertion failed: `x` and `y` arguments must be BigInts');
}
return BigIntBitwiseOp('|', x, y);
};