Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: removed
Object.es8 {entries, values}
from js polyfills (#…
…40747) Summary: Both `hermes` and `JSC` supports `Object.{values & entries}`, so this polyfills aren't used any more. ## Changelog: [GENERAL][REMOVED]: removed `Object.{values & entries}` from polyfills <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #40747 Test Plan: 1. We can confirm with `hermes` tests: https://github.com/facebook/hermes/blob/main/test/hermes/object-functions.js#L256 2. Remove this polyfills and check that the code runs as expected. 3. You can also run: `console.log(Object.entries.toString());` and verify that this is `[native code]` Reviewed By: christophpurrer Differential Revision: D50100639 Pulled By: robhogan fbshipit-source-id: b1cea88bd984e99f304a3a063e985eecff8831dd
- Loading branch information