Skip to content

Commit 157ef23

Browse files
starkwangaddaleax
authored andcommitted
doc: add notice about useGlobal option in repl docs
PR-URL: #13866 Fixes: #13827 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 5543802 commit 157ef23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/repl.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ changes:
405405
REPL instances `terminal` value.
406406
* `useGlobal` {boolean} If `true`, specifies that the default evaluation
407407
function will use the JavaScript `global` as the context as opposed to
408-
creating a new separate context for the REPL instance. Defaults to `false`.
408+
creating a new separate context for the REPL instance. The node CLI REPL
409+
sets this value to `true`. Defaults to `false`.
409410
* `ignoreUndefined` {boolean} If `true`, specifies that the default writer
410411
will not output the return value of a command if it evaluates to
411412
`undefined`. Defaults to `false`.

0 commit comments

Comments
 (0)