mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
fix(e2e): reject unsafe bundled runtime limits
This commit is contained in:
@@ -68,7 +68,7 @@ function readPositiveInt(raw, fallback, name) {
|
||||
throw new Error(`invalid ${name}: ${text}`);
|
||||
}
|
||||
const parsed = Number(text);
|
||||
if (!Number.isInteger(parsed) || parsed <= 0) {
|
||||
if (!Number.isSafeInteger(parsed) || parsed <= 0) {
|
||||
throw new Error(`invalid ${name}: ${text}`);
|
||||
}
|
||||
return parsed;
|
||||
|
||||
Reference in New Issue
Block a user