amis-rpc-design/node_modules/memfs/lib/getBigInt.js
2023-10-07 19:42:30 +08:00

6 lines
191 B
JavaScript

if (typeof BigInt === 'function') exports.default = BigInt;
else
exports.default = function BigIntNotSupported() {
throw new Error('BigInt is not supported in this environment.');
};