summaryrefslogtreecommitdiff
path: root/lib/net.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net.js')
-rw-r--r--lib/net.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/net.js b/lib/net.js
index 3370ecf117..db63a0cc9d 100644
--- a/lib/net.js
+++ b/lib/net.js
@@ -24,6 +24,7 @@
const {
ArrayIsArray,
Boolean,
+ NumberIsNaN,
ObjectDefineProperty,
ObjectSetPrototypeOf,
} = primordials;
@@ -1222,7 +1223,7 @@ function createServerHandle(address, port, addressType, fd, flags) {
handle = new Pipe(PipeConstants.SERVER);
if (process.platform === 'win32') {
const instances = parseInt(process.env.NODE_PENDING_PIPE_INSTANCES);
- if (!Number.isNaN(instances)) {
+ if (!NumberIsNaN(instances)) {
handle.setPendingInstances(instances);
}
}