Files
NapCatQQ/.pnpm-store/v3/files/ab/17f727e88d3f6ba42598ba5f859e8d197361b76f8b6c0f9ced0f86ee948280ed1618abe5955b83dd61b6027c9de37cdaba26ef5eda7320e7a112175c2e3654
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

17 lines
500 B
Plaintext

'use strict';
var $TypeError = require('es-errors/type');
var ToInt32 = require('../ToInt32');
// https://262.ecma-international.org/11.0/#sec-numeric-types-number-bitwiseNOT
module.exports = function NumberBitwiseNOT(x) {
if (typeof x !== 'number') {
throw new $TypeError('Assertion failed: `x` argument must be a Number');
}
var oldValue = ToInt32(x);
// Return the result of applying the bitwise operator op to lnum and rnum. The result is a signed 32-bit integer.
return ~oldValue;
};