summaryrefslogtreecommitdiff
path: root/lib/readline.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline.js')
-rw-r--r--lib/readline.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readline.js b/lib/readline.js
index c8d0a8040a..5cc2293882 100644
--- a/lib/readline.js
+++ b/lib/readline.js
@@ -121,7 +121,7 @@ function Interface(input, output, completer, terminal) {
input = input.input;
}
- if (completer && typeof completer !== 'function') {
+ if (completer !== undefined && typeof completer !== 'function') {
throw new ERR_INVALID_OPT_VALUE('completer', completer);
}