Config: Arrays are not valid for Config.subprocesses (#11532)
Some checks are pending
Node.js CI / build (18.x) (push) Waiting to run

This commit is contained in:
TurboRx
2025-10-26 11:34:35 +05:30
committed by GitHub
parent c33bfbd004
commit 8fb533e4b9

View File

@@ -97,7 +97,7 @@ function cacheSubProcesses(config: ConfigType) {
config.subprocessescache = (Object.fromEntries(
processTypes.map(k => [k, value])
) as Record<ProcessType, number>);
} else if (typeof value === 'object') {
} else if (typeof value === 'object' && !Array.isArray(value)) {
config.subprocessescache = value;
} else {
pushError('error' as const, `Invalid \`subprocesses\` specification. Use any of 0, 1, or a plain old object.`);