JavaScriptPool

constructor(size: Int, nullGlobalContext: Boolean = false)

Parameters

size

the number of JavaScript instances to create in the pool

nullGlobalContext

ignored: JavaScript binds variables into the engine scope, never the global scope, so its global context is always non-null. Retained for API symmetry with the other script pools.