Skip to content

Conversation

@pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Nov 21, 2025

Contributes to #114918 (comment)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where single-threaded (ST) builds were not always properly marking workers as sidecars. The change ensures that in ST builds, any web worker becomes a sidecar, while in multi-threaded (MT) builds, only the first script loaded in a worker becomes the sidecar.

  • Modified the sidecar detection logic to account for ST vs MT builds
  • Added import for WasmEnableThreads constant to enable build-time detection

@pavelsavara pavelsavara merged commit 80f1fae into dotnet:main Nov 26, 2025
41 of 44 checks passed
@pavelsavara pavelsavara deleted the browser_ST_sidecar branch November 26, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture area-VM-threading-mono os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants