mirror of
https://github.com/encounter/phantomjs.git
synced 2026-03-30 11:35:11 -07:00
7f9e03ffad
This is explained in http://code.google.com/p/phantomjs/issues/detail?id=16: 'arguments' is reserved word. Reported by: Nicolas Ferrero.
9 lines
223 B
JavaScript
9 lines
223 B
JavaScript
if (phantom.args.length === 0) {
|
|
console.log('Try to pass some args when invoking this script!');
|
|
} else {
|
|
phantom.args.forEach(function (arg, i) {
|
|
console.log(i + ': ' + arg);
|
|
});
|
|
}
|
|
phantom.exit();
|