Skip to main content

useGlobal

property ReplOptions.useGlobal

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. The node CLI REPL sets this value to true.

boolean | undefined
Back to top