Await completion of the started Run for the duration specified by atMost.
Await completion of the started Run for the duration specified by atMost. Strictly equivalent to:
Await.result(future, atMost)
Await completion of the started Run.
Await completion of the started Run. Strictly equivalent to
Await.result(future, Duration.Inf)
Awaits completion of the started Run for the duration specified by atMost, or force it to stop.
Awaits completion of the started Run for the duration specified by atMost, or force it to stop.
If any exception is thrown while awaiting completion (including a
TimeoutException, forces the runner
to stop by calling stop()
before rethrowing the exception.
Strictly equivalent to:
try await(atMost) finally stop()
File(s) to hack console.log to prevent if from changing %%
to %
.
File(s) to hack console.log to prevent if from changing %%
to %
.
Is used by initFiles, override to change/disable.
A future that completes when the associated run has terminated.
A future that completes when the associated run has terminated.
Get all files that are passed to VM (libraries and code)
Get all files that are passed to VM (libraries and code)
Libraries are loaded via require in Node.js
Libraries are loaded via require in Node.js
VM arguments excluding executable.
VM arguments excluding executable. Override to adapt. Overrider is responsible to add additionalArgs.
VM environment.
VM environment. Override to adapt.
Default is sys.env
and additionalEnv
Concatenates results from installSourceMap, fixPercentConsole and runtimeEnv (in this order).
Concatenates results from installSourceMap, fixPercentConsole and runtimeEnv (in this order).
File(s) to automatically install source-map-support.
File(s) to automatically install source-map-support. Is used by initFiles, override to change/disable.
Checks whether this async runner is still running.
Checks whether this async runner is still running. Strictly equivalent to
!future.isCompleted
pipe lines from input stream to JSConsole
pipe lines from input stream to JSConsole
Pipe stdin and stdout from/to VM
Pipe stdin and stdout from/to VM
Rewrites a library virtual file to a require statement if possible
Rewrites a library virtual file to a require statement if possible
File(s) to define ScalaJSEnv
. Defines
exitFunction.
Is used by initFiles, override to change/disable.
File(s) to define ScalaJSEnv
. Defines
exitFunction.
Is used by initFiles, override to change/disable.
send a bunch of JS files to a writer
send a bunch of JS files to a writer
send a bunch of JS files to an output stream
send a bunch of JS files to an output stream
Sends required data to VM Stdin (can throw)
Sends required data to VM Stdin (can throw)
Start the associated run and returns a Future that completes when the run terminates.
Start the associated run and returns a Future that completes when the run terminates. The returned Future is equivalent to the one returned by future.
Aborts the associated run.
Aborts the associated run.
There is no guarantee that the runner will be effectively terminated
by the time this method returns. If necessary, this call can be followed
by a call to await()
.
If the run has already completed, this does nothing. Similarly,
subsequent calls to stop()
will do nothing.
This method cannot be called before start()
has been called.
Wait for the VM to terminate, verify exit code
Wait for the VM to terminate, verify exit code
NonZeroExitException
if VM returned a non-zero code
write a single JS file to a writer using an include fct if appropriate
uses require
if the file exists on the filesystem
write a single JS file to a writer using an include fct if appropriate
uses require
if the file exists on the filesystem