PuseGlobal
Bun

property

repl.ReplOptions.useGlobal

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