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

Implement Object.fromEntries #2327

Merged
merged 2 commits into from
Feb 23, 2023

Conversation

Dabolus
Copy link
Contributor

@Dabolus Dabolus commented Feb 13, 2023

This PR adds support for Object.fromEntries from ES2019.

Opening as a draft because I still have to figure out how to properly run tests.

@gfwilliams
Copy link
Member

Thanks - I think running tests is as easy as building for Linux and running ./espruino --test ...

But this code may be broken - I think jsvObjectSetChildAndUnLock expects a string as a second argument and also key would need to be unlocked anyway in the jsvObjectSetChildAndUnLock case.

@gfwilliams gfwilliams merged commit fe988c0 into espruino:master Feb 23, 2023
@gfwilliams
Copy link
Member

Had to do a few fixes for this, but it's added now

@Dabolus
Copy link
Contributor Author

Dabolus commented Feb 25, 2023

Thank you! 🥳

@Dabolus Dabolus deleted the feat/object-fromentries branch October 16, 2023 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants