AbstractScript

constructor(extension: String, nullGlobalContext: Boolean)

Wraps the engine registered for extension.

Parameters

extension

the file extension used to look up the script engine (e.g., "kts", "py", "java")

nullGlobalContext

if true, sets the global scope bindings to null on initialization

Throws

if no engine is found for the given extension