[ecmascript,vrotsc] Add shim for Object.entries()#1083
Merged
VenelinBakalov merged 1 commit intovmware:mainfrom Mar 30, 2026
Merged
[ecmascript,vrotsc] Add shim for Object.entries()#1083VenelinBakalov merged 1 commit intovmware:mainfrom
Object.entries()#1083VenelinBakalov merged 1 commit intovmware:mainfrom
Conversation
Signed-off-by: Indy Vierboom <Indy.Vierboom@rabobank.nl>
Object.entries
Object.entriesObject.entries()
8 tasks
Collaborator
|
@Indy-rbo thank you! looks good! |
VenelinBakalov
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added Shim for Object.entries.
There already is a Shim for
Object.valuesandObject.keysis natively supported.As it was suggested to add this missing shim to known issues in #1073 I wanted to see how easy it was to add it.
Don't think we need to add to any tsconfig lib definitions as
ES2017.Objectwas already added in #1073Checklist
Testing
vrotsc/e2eto test theObject.entriestranspilation.There are no specific unit test files for Shims, but wrote tests locally to see if the function matched the behavior of the actual implementation. Based them on MDN examples and made an LLM generate extra edge cases.
Toggle below for the test cases, in case you wish to verify or want to adopt them later.
Local tests
Which gave these results:
Live testing
Which compiles to:
Test Screenshot
Release Notes
Added Shim for
Object.entries.