Prepare a runner for the code in the virtual file.
Prepare a runner for the code in the virtual file.
Prepare a runner without any libraries.
Prepare a runner without any libraries.
Strictly equivalent to:
this.jsRunner(Nil, code)
Return this JSEnv with the given libraries already loaded.
Return this JSEnv with the given libraries already loaded.
The following two are equivalent:
jsEnv.loadLibs(a).jsRunner(b, c) jsEnv.jsRunner(a ++ b, c)
Human-readable name for this JSEnv
Human-readable name for this JSEnv
A RetryingComJSEnv allows to automatically retry if a call to the underlying ComJSRunner fails.
While it protects the JVM side from observing state that differs inbetween runs that have been retried, it assumes that the executed JavaScript code does not have side-effects other than the ones visible through the channel (e.g. writing to a file). It is the users responsibility to ensure this property.
No retrying is performed for synchronous, or normal asynchronous runs.