diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2019-01-19 17:34:00 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-03-08 06:44:56 +0300 |
commit | 82f882140120f4ce074fe0de01e380cb3c7c9fc3 (patch) | |
tree | 0ac564d4e68c0564b0d185b1e2c7ad5b2eb77543 /lib/internal/repl | |
parent | 6de88015bbeb9cd9c6442399db6e8838abd8bec2 (diff) |
repl: add replDefaults to customize the writer
So far it was not possible to modify the inspection defaults used by
the REPL from the running instance itself. This introduces a new
property on `util.inspect` which is only used inside the REPL and which
allows to modify the used inspection defaults at any point of time.
PR-URL: https://github.com/nodejs/node/pull/26375
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/internal/repl')
-rw-r--r-- | lib/internal/repl/utils.js (renamed from lib/internal/repl/recoverable.js) | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/internal/repl/recoverable.js b/lib/internal/repl/utils.js index 9d4fb11fa87..6830ebb0806 100644 --- a/lib/internal/repl/recoverable.js +++ b/lib/internal/repl/utils.js @@ -70,5 +70,6 @@ function isRecoverableError(e, code) { } module.exports = { - isRecoverableError + isRecoverableError, + kStandaloneREPL: Symbol('kStandaloneREPL') }; |