Custom initialization scripts, defined by the environment.
Custom initialization scripts, defined by the environment.
Get all files that are passed to VM (libraries and code)
Get all files that are passed to VM (libraries and code)
Get files that are a library (i.e.
Get files that are a library (i.e. that do not run anything)
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
PhantomJS doesn't support Function.prototype.bind.
PhantomJS doesn't support Function.prototype.bind. We polyfill it. https://github.com/ariya/phantomjs/issues/10522
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
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)
Wait for the VM to terminate, verify exit code
Wait for the VM to terminate, verify exit code
ExternalJSEnv.NonZeroExitException
if VM returned a non-zero code
In phantom.js, we include JS using HTML
In phantom.js, we include JS using HTML