summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/child_process.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/child_process.ts')
-rw-r--r--ext/node/polyfills/child_process.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/node/polyfills/child_process.ts b/ext/node/polyfills/child_process.ts
index 2182361e9..46a19983d 100644
--- a/ext/node/polyfills/child_process.ts
+++ b/ext/node/polyfills/child_process.ts
@@ -436,15 +436,7 @@ export function execFile(
shell: false,
...options,
};
- if (!Number.isInteger(execOptions.timeout) || execOptions.timeout < 0) {
- // In Node source, the first argument to error constructor is "timeout" instead of "options.timeout".
- // timeout is indeed a member of options object.
- throw new ERR_OUT_OF_RANGE(
- "timeout",
- "an unsigned integer",
- execOptions.timeout,
- );
- }
+ validateTimeout(execOptions.timeout);
if (execOptions.maxBuffer < 0) {
throw new ERR_OUT_OF_RANGE(
"options.maxBuffer",