Skip to content

[browser] Make withConfigLoaded additive - #137066

Merged
maraf merged 1 commit into
mainfrom
maraf/additive-config-loaded-callbacks
Nov 7, 2026
Merged

maraf merged 1 commit into
mainfrom
maraf/additive-config-loaded-callbacks

Conversation

@maraf

@maraf maraf commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Make withConfigLoaded registrations additive in both the CoreCLR and Mono browser loaders. Callbacks run sequentially in registration order, each awaited, using a snapshot so registrations made during invocation do not run in that invocation. Passing undefined is a no-op. Legacy onConfigLoaded configuration retains its existing replacement behavior.

Add a focused Wasm.Build.Tests browser regression that checks registration order and asynchronous completion.

Validation
  • cd src/native && npm run lint - passed
  • cd src/native && npm run rollup:debug - passed
  • cd src/mono/browser/runtime && npm run lint - passed
  • Configuration=Debug NativeBinDir=../../../../artifacts/obj/config-loaded/mono WasmObjDir=../../../../artifacts/obj/config-loaded/mono npm run rollup (from src/mono/browser/runtime) - passed
  • Focused local Node harness covering both loader implementations - 12 passed
  • Wasm.Build.Tests browser regression - not run: the required .NET SDK and browser runtime packs are unavailable in this worktree.

Note

This PR description was generated with the assistance of GitHub Copilot.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@maraf maraf added os-browser Browser variant of arch-wasm arch-wasm WebAssembly architecture labels Nov 6, 2026
@maraf maraf added this to the 12.0.0 milestone Nov 6, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

@maraf

maraf commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

/ba-g Failures are unrelated. Build Analysis matched the canceled osx-arm64 Libraries_CheckedCoreCLR job to the known macOS 60-minute timeout issue (dotnet/dnceng#1883). The Monitor Helix Jobs check also failed, but reported no Helix work-item failures or error details. No failures were correlated with this PR's changed files.

Note

This comment was generated with the assistance of GitHub Copilot.

@maraf
maraf merged commit 6cd3d86 into main Nov 7, 2026
144 of 147 checks passed
@maraf
maraf deleted the maraf/additive-config-loaded-callbacks branch November 7, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants