mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-13 17:07:40 +00:00
fix(scripts): reject unsafe startup memory timeouts
This commit is contained in:
@@ -20,7 +20,7 @@ let rssHookPath = null;
|
||||
|
||||
function readPositiveIntEnv(name, fallback, env = process.env) {
|
||||
const value = readPositiveNumberEnv(name, fallback, env);
|
||||
if (!Number.isInteger(value)) {
|
||||
if (!Number.isSafeInteger(value)) {
|
||||
throw new Error(`${name} must be a positive integer`);
|
||||
}
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user