Sha256: 9fdd0d05db13029c45453cc521279d497352f74cfb3f50c93a3f8c32b6af774c

Contents?: true

Size: 503 Bytes

Versions: 112

Compression:

Stored size: 503 Bytes

Contents

'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-bitwiseXOR

module.exports = function BigIntBitwiseXOR(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);
};

Version data entries

112 entries across 30 versions & 4 rubygems

Version Path
immosquare-cleaner-0.1.32 node_modules/es-abstract/2022/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2023/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2021/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.32 node_modules/es-abstract/2020/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2022/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2020/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2023/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.31 node_modules/es-abstract/2021/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2021/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2022/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2020/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.30 node_modules/es-abstract/2023/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2022/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2020/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2021/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.29 node_modules/es-abstract/2023/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.28 node_modules/es-abstract/2020/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.28 node_modules/es-abstract/2021/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.28 node_modules/es-abstract/2022/BigInt/bitwiseXOR.js
immosquare-cleaner-0.1.28 node_modules/es-abstract/2023/BigInt/bitwiseXOR.js