diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-06 00:56:00 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-04-15 23:24:26 +0300 |
commit | a38e9c438ae872da37999c39d974facd4d524ea2 (patch) | |
tree | afd23a9511e2e306760b71f1dabfdded92c8a25b /lib/internal/repl | |
parent | 7938238b31f69d1a8bfa8069387cc2374435996c (diff) |
lib: require globals instead of using the global proxy
In addition, use process.stderr instead of console.error when
there is no need to swallow the error.
PR-URL: https://github.com/nodejs/node/pull/27112
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/internal/repl')
-rw-r--r-- | lib/internal/repl/history.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/internal/repl/history.js b/lib/internal/repl/history.js index 9f41b18b676..dd3ea850954 100644 --- a/lib/internal/repl/history.js +++ b/lib/internal/repl/history.js @@ -5,6 +5,7 @@ const path = require('path'); const fs = require('fs'); const os = require('os'); const debug = require('internal/util/debuglog').debuglog('repl'); +const { clearTimeout, setTimeout } = require('timers'); // XXX(chrisdickinson): The 15ms debounce value is somewhat arbitrary. // The debounce is to guard against code pasted into the REPL. |