phantomjs
phantomjs copied to clipboard
Multiple calls to phantom.exit result in killing the first exit code
The following script:
phantom.exit( 0 ); phantom.exit( 1 );
Will return an exit status code of '1'... it should return a status code of 0.
While this might not be possible to exit immediately, the second call to exit() should not destroy the exit code of the first.