summaryrefslogtreecommitdiff
path: root/lib/repl.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/repl.js')
-rw-r--r--lib/repl.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/repl.js b/lib/repl.js
index 6f84cf7e69..bac427bd5a 100644
--- a/lib/repl.js
+++ b/lib/repl.js
@@ -45,6 +45,7 @@
const {
ArrayIsArray,
MathMax,
+ NumberIsNaN,
ObjectAssign,
ObjectCreate,
ObjectDefineProperty,
@@ -701,7 +702,7 @@ function REPLServer(prompt,
// display next prompt and return.
if (trimmedCmd) {
if (trimmedCmd.charAt(0) === '.' && trimmedCmd.charAt(1) !== '.' &&
- Number.isNaN(parseFloat(trimmedCmd))) {
+ NumberIsNaN(parseFloat(trimmedCmd))) {
const matches = trimmedCmd.match(/^\.([^\s]+)\s*(.*)$/);
const keyword = matches && matches[1];
const rest = matches && matches[2];