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

13 lines
314 B
Plaintext

'use strict';
var $TypeError = require('es-errors/type');
// https://262.ecma-international.org/11.0/#sec-binaryor
module.exports = function BinaryOr(x, y) {
if ((x !== 0 && x !== 1) || (y !== 0 && y !== 1)) {
throw new $TypeError('Assertion failed: `x` and `y` must be either 0 or 1');
}
return x | y;
};