Skip to content
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 does not work with index property keys #1501

Closed
raskad opened this issue Aug 23, 2021 · 0 comments · Fixed by #1502
Closed

Object.keys does not work with index property keys #1501

raskad opened this issue Aug 23, 2021 · 0 comments · Fixed by #1502
Labels
bug Something isn't working builtins PRs and Issues related to builtins/intrinsics
Milestone

Comments

@raskad
Copy link
Member

raskad commented Aug 23, 2021

Describe the bug
Object.keys does not work with index property keys

To Reproduce
Steps to reproduce the issue, or JavaScript code that causes this failure.

This JavaScript code reproduces the issue:

let o = [1, 2, 3];
Object.keys(o);

The output is []

Expected behavior
The output should be [ '0', '1', '2' ]

Build environment:

  • OS: Linux
  • Version: eaaae85
  • Target triple:x86_64-unknown-linux-gnu
  • Rustc version: rustc 1.53.0 (53cb7b09b 2021-06-17)
@raskad raskad added the bug Something isn't working label Aug 23, 2021
@Razican Razican added the builtins PRs and Issues related to builtins/intrinsics label Aug 24, 2021
@Razican Razican added this to the v0.13.0 milestone Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working builtins PRs and Issues related to builtins/intrinsics
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants