From 6e47e133ab90045db8df611cf34a3f461f291327 Mon Sep 17 00:00:00 2001 From: starkwang <381152119@qq.com> Date: Thu, 22 Jun 2017 12:11:56 +0800 Subject: [PATCH] doc: add notice about useGlobal option in repl docs PR-URL: https://github.com/nodejs/node/pull/13866 Fixes: https://github.com/nodejs/node/issues/13827 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Gibson Fahnestock --- doc/api/repl.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index d18b34a5eab..f276b965bdf 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -405,7 +405,8 @@ changes: REPL instances `terminal` value. * `useGlobal` {boolean} If `true`, specifies that the default evaluation function will use the JavaScript `global` as the context as opposed to - creating a new separate context for the REPL instance. Defaults to `false`. + creating a new separate context for the REPL instance. The node CLI REPL + sets this value to `true`. Defaults to `false`. * `ignoreUndefined` {boolean} If `true`, specifies that the default writer will not output the return value of a command if it evaluates to `undefined`. Defaults to `false`.