summaryrefslogtreecommitdiff
path: root/lib/child_process.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/child_process.js')
-rw-r--r--lib/child_process.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/child_process.js b/lib/child_process.js
index 866eb5fae1..2a0d471c02 100644
--- a/lib/child_process.js
+++ b/lib/child_process.js
@@ -23,6 +23,7 @@
const {
ArrayIsArray,
+ NumberIsInteger,
ObjectAssign,
ObjectDefineProperty,
ObjectPrototypeHasOwnProperty,
@@ -651,7 +652,7 @@ function execSync(command, options) {
function validateTimeout(timeout) {
- if (timeout != null && !(Number.isInteger(timeout) && timeout >= 0)) {
+ if (timeout != null && !(NumberIsInteger(timeout) && timeout >= 0)) {
throw new ERR_OUT_OF_RANGE('timeout', 'an unsigned integer', timeout);
}
}