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

[compiler] Fix invalid Array.map type #32095

Merged
merged 3 commits into from
Jan 22, 2025
Merged

[compiler] Fix invalid Array.map type #32095

merged 3 commits into from
Jan 22, 2025

Conversation

Small patch to pass aliased context values into `Object|ArrayExpression`s
@josephsavona
Copy link
Contributor

josephsavona commented Jan 21, 2025

Ahhh I see why this happened — note that the BuiltInArray methods already are marked as ConditionallyMutate. Its the copies of those declarations on the MixedReadonly type that were wrong. Before landing, can you please update all of the other relevant MixedReadonly methods to ConditionallyMutate?

@mofeiZ
Copy link
Contributor Author

mofeiZ commented Jan 22, 2025

Ahhh I see why this happened — note that the BuiltInArray methods already are marked as ConditionallyMutate. Its the copies of those declarations on the MixedReadonly type that were wrong. Before landing, can you please update all of the other relevant MixedReadonly methods to ConditionallyMutate?

Done, thanks for catching these! I thought I checked the other MixedReadonlys before but completely missed filter and flatMap

@mofeiZ mofeiZ marked this pull request as ready for review January 22, 2025 19:33
mofeiZ added a commit that referenced this pull request Jan 22, 2025
Small patch to pass aliased context values into
`Object|ArrayExpression`s
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32093).
* #32099
* #32104
* #32098
* #32097
* #32096
* #32095
* #32094
* __->__ #32093
mofeiZ added a commit that referenced this pull request Jan 22, 2025
See test fixture
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32094).
* #32099
* #32104
* #32098
* #32097
* #32096
* #32095
* __->__ #32094
* #32093
@mofeiZ mofeiZ merged commit b83090f into main Jan 22, 2025
22 checks passed
mofeiZ added a commit that referenced this pull request Jan 22, 2025
See title: this fixes test cases broken by #32095 adding instead of moving new test fixtures
mofeiZ added a commit that referenced this pull request Jan 22, 2025
See title: this fixes test cases broken by
#32095 adding instead of moving
new test fixtures
@poteto poteto deleted the pr32095 branch January 22, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants