Skip to content

[3.23.1] backport #14438 - #14495

Merged
shonfeder merged 1 commit into
3.23.1-rcfrom
backport-14438
May 12, 2026
Merged

shonfeder merged 1 commit into
3.23.1-rcfrom
backport-14438

Conversation

@shonfeder

Copy link
Copy Markdown
Member

Backport #14438 onto 3.23.1-rc

The sort in `Runtime_key.Decoded.of_libs` made the digest invariant
under input reordering, but it also reordered the libs fed back to
`jsoo_runtime_files` in `setup_shared_runtime_rule`. Since later JS
files override earlier ones in the runtime, alphabetical order produced
a different runtime than the topological order each consumer would have
built on its own, silently switching which conflicting binding wins.

Drop the sort. Stanzas with the same closure and the same requires_link
order still share; stanzas that disagree on order get separate runtimes
rather than a shared one with arbitrary contents.

(cherry picked from commit 5634e49)
Signed-off-by: Shon Feder <[email protected]>
@shonfeder

Copy link
Copy Markdown
Member Author

No other changes have touched file on main prior to this fix, and it seems isolated and straight forward, so I will merge this into the release branch once the tests pass.

@shonfeder shonfeder mentioned this pull request May 11, 2026
20 tasks done
@shonfeder
shonfeder merged commit 769d8dd into 3.23.1-rc May 12, 2026
29 checks passed
@shonfeder
shonfeder deleted the backport-14438 branch May 12, 2026 13:11
@Alizter Alizter added this to the 3.23.1 milestone Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants