Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Function#apply() does not use all elements in arguments array #10069

Closed
ariya opened this issue Mar 29, 2011 · 1 comment
Closed

Function#apply() does not use all elements in arguments array #10069

ariya opened this issue Mar 29, 2011 · 1 comment

Comments

@ariya
Copy link
Owner

ariya commented Mar 29, 2011

renier.m...@gmail.com commented:

What steps will reproduce the problem?
if (phantom.state.length === 0) {
if (phantom.args.length === 0) {
console.log('Usage: script.js <some URL>');
phantom.exit();
} else {
var address = phantom.args[0];
console.log('Loading ' + address);
phantom.viewportSize = { width: 1024, height: 768 };
phantom.open(address);
}
} else {
if (phantom.loadStatus !== 'success') {
console.log('FAIL to load the address');
phantom.exit();
} else {
console.log.apply(console, ["hello", "world"]);
}
}

What is the expected output?
hello world

What do you see instead?
hello

What version of the product are you using?
Using with qt-webkit 4.7.1.

On what operating system?
Fedora 14

Please provide any additional information below:
Tested using Arora which also uses qt-webkit 4.7.1 as phantomjs (as built on my system) and this behavior is not shown in the Arora JS console (Web Inspector).

Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #69.
🌟   2 people had starred this issue at the time of migration.

@ariya
Copy link
Owner Author

ariya commented Mar 29, 2011

ariya.hi...@gmail.com commented:

 

 
Metadata Updates

@ariya ariya closed this as completed Mar 29, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant