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

23 lines
581 B
Plaintext

'use strict';
var $TypeError = require('es-errors/type');
var ToInt32 = require('../ToInt32');
var ToUint32 = require('../ToUint32');
var modulo = require('../modulo');
// https://262.ecma-international.org/12.0/#sec-numeric-types-number-unsignedRightShift
module.exports = function NumberUnsignedRightShift(x, y) {
if (typeof x !== 'number' || typeof y !== 'number') {
throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
}
var lnum = ToInt32(x);
var rnum = ToUint32(y);
var shiftCount = modulo(rnum, 32);
return lnum >>> shiftCount;
};