-
-
Notifications
You must be signed in to change notification settings - Fork 896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object.keys doesn't work correctly with string objects. #209
Comments
I don't believe this issue was addressed. |
I wasn't able to reproduce your issue in |
Cool, thanks for reporting, I'll take a look. |
On 94e0add var a = Object('x');
a.y = 1;
Object.keys(a);
// should be ["0", "y"] currently it will only be |
This is a tricky one :-) thanks, will keep looking. |
|
@ljharb |
This final edge case still fails in Firefox, but should pass everywhere else. I'm leaning towards this holding up a v3.0 build - since we're now overriding more native methods, it's worth a major version bump imo. Hopefully I'll have time to finish it up this weekend. |
Actually this is now fixed. Please open a new issue if you find more issues with Object.keys :-) thanks! |
See http://jsbin.com/xijifore/1.
In IE8 it will alert
0
instead of5
.The text was updated successfully, but these errors were encountered: