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

Javascript bug in Android: Array.keys() has problems with holes #18230

Closed
voxspox opened this issue Mar 6, 2018 · 2 comments
Closed

Javascript bug in Android: Array.keys() has problems with holes #18230

voxspox opened this issue Mar 6, 2018 · 2 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@voxspox
Copy link

voxspox commented Mar 6, 2018

The following code does not meet the specification:

var arr = ['a', , 'c'];
var sparseKeys = Object.keys(arr);
var denseKeys = [...arr.keys()];
console.log(sparseKeys); // ['0', '2']
console.log(denseKeys);  // [0, 1, 2]
// but last command output is []

Example frm MDN: Array.keys()

Running React Native 0.53.2
Android Studio 3.0.1
Android Emulator 27.1.10
Nexus 5 - API 24

This bug seems to be releated to Android. But I don't know where to report bugs for the Javascript Engine.

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like your issue may be incomplete. Are all the fields required by the Issue Template filled out?

You may safely ignore this if you believe your issue contains all the relevant information. Thank you for your contributions.

How to ContributeWhat to Expect from Maintainers

@react-native-bot react-native-bot added No Template Ran Commands One of our bots successfully processed a command. labels Mar 6, 2018
@hramos hramos added the Android label Mar 8, 2018
@react-native-bot
Copy link
Collaborator

This issue was marked as lacking information required by the issue template. There has been no activity on this issue for a while, so I will go ahead and close it.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

If you are the author of this issue and you believe this issue was closed in error (i.e. you have edited your issue to ensure it meets the template requirements), please let us know.

@react-native-bot react-native-bot added the Ran Commands One of our bots successfully processed a command. label Mar 16, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Mar 16, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants