WaterfallEngineering/SpookyJS — pull request #82 by Emanuele-Fortunati (2013-12-04 09:05:18+00:00)
Title: Casper module not found issue fixed

OS: OSX 10.8.5
Phantom: 1.9.2
Casper: 1.1 beta and 1.04 stable

I've spent some time figuring out why the hello.js example wasn't working even after setting up properly all the paths and env variables so I've dig deeper in the code and I've found the error was throw because the patchRequire method wasn't call as this last one it's supposed to be called only for some version of casper.

To prevent this error I've thought to use a try-catch instead of checking on versions.