From 204ed3125ce60178d01140e14f1ee9748f7867c9 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 --- 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 9d6bdfb112d6cf..5bd158f7240923 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`.