sgentle/phantomjs-node — pull request #87 by obeattie (2013-06-29 11:22:01+00:00)
Title: Handle abnormal PhantomJS exits

When PhantomJS crashes but does not report anything to `stderr`, phantomjs-node should report this.

This may happen, for instance, if the process is killed by the OOM killer (as was the case for me). Currently, this package does not report any error to the caller.

As there is presently no event emitter for phantom, I've implemented this using `console.assert`.