diff options
author | cjihrig <cjihrig@gmail.com> | 2016-07-19 14:41:47 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2016-07-21 10:33:30 -0400 |
commit | 2cc01da7f0f484c7cf8c98f3f8a9871ced377afc (patch) | |
tree | 47e131c9664c0b4e3e567aaa461ee002cda3f050 /lib/internal/repl.js | |
parent | 68b966b2de265c9c5090b4299beee4e99ee733b1 (diff) | |
download | android-node-v8-2cc01da7f0f484c7cf8c98f3f8a9871ced377afc.tar.gz android-node-v8-2cc01da7f0f484c7cf8c98f3f8a9871ced377afc.tar.bz2 android-node-v8-2cc01da7f0f484c7cf8c98f3f8a9871ced377afc.zip |
repl: default useGlobal to true
This is a partial revert of
15157c3c3d7594cefb7f5941cbe925657e7d88bd. This change lead to a
regression that broke require() in the CLI REPL, as imported
files were evaluated in a different context.
Refs: https://github.com/nodejs/node/pull/5703
Fixes: https://github.com/nodejs/node/issues/7788
PR-URL: https://github.com/nodejs/node/pull/7795
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
Diffstat (limited to 'lib/internal/repl.js')
-rw-r--r-- | lib/internal/repl.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/repl.js b/lib/internal/repl.js index d59b40eb76..dd14f42fa5 100644 --- a/lib/internal/repl.js +++ b/lib/internal/repl.js @@ -22,7 +22,7 @@ function createRepl(env, opts, cb) { opts = opts || { ignoreUndefined: false, terminal: process.stdout.isTTY, - useGlobal: false, + useGlobal: true, breakEvalOnSigint: true }; |