summaryrefslogtreecommitdiff
path: root/lib/internal/repl.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/repl.js')
-rw-r--r--lib/internal/repl.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/internal/repl.js b/lib/internal/repl.js
index a5f5cd25f2..75a68c8ea8 100644
--- a/lib/internal/repl.js
+++ b/lib/internal/repl.js
@@ -1,6 +1,7 @@
'use strict';
const {
+ NumberIsNaN,
ObjectCreate,
} = primordials;
@@ -39,7 +40,7 @@ function createRepl(env, opts, cb) {
}
const historySize = Number(env.NODE_REPL_HISTORY_SIZE);
- if (!Number.isNaN(historySize) && historySize > 0) {
+ if (!NumberIsNaN(historySize) && historySize > 0) {
opts.historySize = historySize;
} else {
opts.historySize = 1000;