SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[compiler] Add definitions for Object entries/keys/values (#34047)

Fixes remaining issue in #32261, where passing a previously useMemo()-d
value to `Object.entries()` makes the compiler think the value is
mutated and fail validatePreserveExistingMemo. While I was there I added
Object.keys() and Object.values() too.

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34047).
* #34049
* __->__ #34047
* #34044

DiffTrain build for [0860b9cc1f4a7188b41204bddc57a127a8bbf6e9](https://github.com/facebook/react/commit/0860b9cc1f4a7188b41204bddc57a127a8bbf6e9)
J
josephsavona committed
789bae0c1e118115a87c41aab998d26f5f9df9d0
Parent: ad524e5