Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/2023/BigInt/bitwiseNOT.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2023/BigInt/bitwiseNOT.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/es-abstract/2023/BigInt/bitwiseNOT.js
-
curl -L -o bitwiseNOT.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/2023/BigInt/bitwiseNOT.js
450 Bytes
| ; | |
| 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); | |
| }; | |