This repository has been archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
for..in arguments statement problem #10315
Comments
|
ariya.hi...@gmail.com commented:
|
|
The issue is still there. function x() {
for ( var key in arguments ) {}
return key;
}
x('foo', 'bar', 'baz');
// Chrome>
"2"
// PhantomJS>
undefinedfunction x() {
return String(arguments);
}
x('foo', 'bar', 'baz');
// Chrome>
'[object Arguments]'
// PhantomJS>
'[object Arguments]'function x() {
return JSON.stringify(arguments);
}
x('foo', 'bar', 'baz');
// Chrome>
'{"0":"foo","1":"bar","2":"baz"}'
// PhantomJS>
'{}' |
|
@Krinkle: Are you using the PhantomJS REPL or an actual driver script? |
|
@JamesMGreene Tried in both REPL and regular script execution on a web page (PhantomJS v1.9.7). Same results (missing keys). |
jeron-diovis
pushed a commit
to jeron-diovis/require-package
that referenced
this issue
Jun 16, 2014
jeron-diovis
pushed a commit
to jeron-diovis/require-package
that referenced
this issue
Jun 16, 2014
|
Works in 2.0. |
ariya
added a commit
that referenced
this issue
Aug 16, 2014
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
nicu.gir...@sendgrid.com commented:
Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #315.
🌟 2 people had starred this issue at the time of migration.
The text was updated successfully, but these errors were encountered: