Repository navigation
Test the evaluation order of a dict spread with children in JSX preserve mode - #9057
Conversation
…rve mode #8747 printed such a spread as separate JSX props with the children last, so a later field was evaluated before them; #8754 fixed it. The plain and preserve builds now record and compare that order. Closes #8757. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NLAPXPM9xbC6L6jutL4PDo Signed-off-by: Christoph Knittel <ck@cca.io>
ChangelogNo changelog entry. Semantic Diff1 commit · Full page Test the evaluation order of a dict spread with children in JSX preserve moded36fbdd · cknitt + Claude · Oct 26, 2026, 18:30 UTC #8747 printed such a spread as separate JSX props with the children last, so a later field was evaluated before them; #8754 fixed it. The plain and preserve builds now record and compare that order. Closes #8757. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9057 +/- ##
=======================================
Coverage 81.42% 81.42%
=======================================
Files 459 459
Lines 64547 64547
=======================================
+ Hits 52558 52559 +1
+ Misses 11989 11988 -1 🚀 New features to boost your workflow:
|
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-9057 |
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Closes #8757.
#8747 made JSX preserve mode print a dict spread as separate JSX props with
childrenmoved last, so intitlewas evaluated beforechildren. #8754 already fixed this by keeping the dict as one spread object. This PR adds the case tojsx_preserve_semantics/cases/Order.res, which records the effect order in both builds and compares them.I checked that the test catches the regression: after a hand edit that puts the #8747-shaped output back into the preserved
Order.jsx, the comparison fails withtitle, childrenagainstchildren, title.🤖 Generated with Claude Code
https://claude.ai/code/session_01NLAPXPM9xbC6L6jutL4PDo