Skip to content

Support logical assignment expressions in compiler HIR#36394

Open
raashish1601 wants to merge 1 commit intofacebook:mainfrom
raashish1601:codex/compiler-nullish-assignment
Open

Support logical assignment expressions in compiler HIR#36394
raashish1601 wants to merge 1 commit intofacebook:mainfrom
raashish1601:codex/compiler-nullish-assignment

Conversation

@raashish1601
Copy link
Copy Markdown

Summary

  • add HIR lowering for logical assignment expressions (??=, &&=, and ||=)
  • preserve single left-hand-side reference evaluation for member assignments before conditionally storing the right-hand value
  • add a compiler fixture covering nullish, and/or assignment semantics

Issue

Fixes #33315.

Validation

  • corepack yarn workspace snap run snap --pattern nullish-assignment-expression --sync
  • corepack yarn workspace babel-plugin-react-compiler run lint -- --quiet
  • corepack yarn prettier
  • git diff --cached --check

@meta-cla meta-cla Bot added the CLA Signed label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Compiler Bug]: Todo: (BuildHIR::lowerExpression) Handle ??= operators in AssignmentExpression (164:164)

1 participant