-
Notifications
You must be signed in to change notification settings - Fork 661
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
Test Additions for JS Array Functions #31
Conversation
…type.keys() functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding tests is always helpful, thanks!
We already have some array iteration tests in
https://github.com/facebook/hermes/blob/master/test/hermes/iterator.js
though, so it would be preferred if you could move any tests for array iteration there instead.
Thanks @avp! I have added tests to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avp is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: ## Motivation Why are you making this change? What did you change? How does the code work? Why did you choose this approach? Pull Request resolved: facebookincubator/fbjni#31 Test Plan: How did you test this change? Any change that adds functionality should add a unit test as well. Reviewed By: BurntBrunch Differential Revision: D19348810 Pulled By: passy fbshipit-source-id: 7a144c80cc1078d968a562a17fa8d5f84047eeb2
The Hermes VM currently has support for Javascript's
Array.prototype.values()
andArray.prototype.keys()
functions but tests for them were yet to be included.I worked on tests for both functions in this pull request.