Fixup for more recent phantomjs
Showing
1 changed file
with
5 additions
and
0 deletions
... | @@ -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'); | ... | ... |
-
Please register or sign in to post a comment