Commit 3f1226df 3f1226df77544ba8e17e94f8330bc92f62248f15 by John McEleney

Fixup for more recent phantomjs

1 parent 9f1b76d2
...@@ -31,6 +31,11 @@ ...@@ -31,6 +31,11 @@
31 /*global process, console, phantom, slimer, require:true*/ 31 /*global process, console, phantom, slimer, require:true*/
32 /*jshint maxstatements:34, maxcomplexity:10*/ 32 /*jshint maxstatements:34, maxcomplexity:10*/
33 33
34 var system = require('system');
35 var argsdeprecated = system.args;
36 argsdeprecated.shift();
37 phantom.args = argsdeprecated;
38
34 // node check 39 // node check
35 if ('process' in this && process.title === "node") { 40 if ('process' in this && process.title === "node") {
36 console.error('CasperJS cannot be executed within a nodejs environment'); 41 console.error('CasperJS cannot be executed within a nodejs environment');
......