Custom initialization scripts, defined by the environment.
File(s) to hack console.log to prevent if from changing
Get all files that are passed to VM (libraries and code)
Libraries are loaded via require in Node.js
VM arguments excluding executable.
File(s) to automatically install source-map-support.
pipe lines from input stream to JSConsole
Pipe stdin and stdout from/to VM
Rewrites a library virtual file to a require statement if possible
Run the associated JS code.
File(s) to define
. 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 an output stream
Sends required data to VM Stdin (can throw)
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
require if the file exists on the filesystem