Sha256: 23dc36c4b12eeef514fffff7a2b1e8ca67266c196b822f7fe4ae7dd5b1a7e294
Contents?: true
Size: 450 Bytes
Versions: 112
Compression:
Stored size: 450 Bytes
Contents
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $BigInt = GetIntrinsic('%BigInt%', true); var $TypeError = GetIntrinsic('%TypeError%'); var Type = require('../Type'); // https://262.ecma-international.org/11.0/#sec-numeric-types-bigint-bitwiseNOT module.exports = function BigIntBitwiseNOT(x) { if (Type(x) !== 'BigInt') { throw new $TypeError('Assertion failed: `x` argument must be a BigInt'); } return -x - $BigInt(1); };
Version data entries
112 entries across 30 versions & 4 rubygems