resetContext

fun resetContext(nullGlobalContext: Boolean = false)

Resets the script engine context, clearing all bindings and state.

Parameters

nullGlobalContext

if true, sets the global scope bindings to null