Commit 3f1226df 3f1226df77544ba8e17e94f8330bc92f62248f15 by John McEleney

Fixup for more recent phantomjs

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