[compiler][bugfix] Returned functions are not always frozen (#33047)
Fixes an edge case in React Compiler's effects inference model. Returned values should only be typed as 'frozen' if they are (1) local and (2) not a function expression which may capture and mutate this function's outer context. See test fixtures for details --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33047). * #32765 * #32747 * __->__ #33047
M
mofeiZ committed
12f4cb85c5847758ece81fc95b7eaedc1fb9ebd0
Parent: 90a124a
Committed by GitHub <[email protected]>
on 4/30/2025, 7:50:54 PM