Skip to content

[Wasm] Instantiate error detection - #128167

Merged
kg merged 2 commits into
dotnet:mainfrom
kg:wasm-instantiate-error-detection
May 14, 2026
Merged

[Wasm] Instantiate error detection#128167
kg merged 2 commits into
dotnet:mainfrom
kg:wasm-instantiate-error-detection

Conversation

@kg

@kg kg commented May 13, 2026

Copy link
Copy Markdown
Contributor

Better failure mode when trying to load an R2R module using a release build of corerun.js.

Copilot AI review requested due to automatic review settings May 13, 2026 21:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 improves diagnostics in the WASM corerun host when loading Webcil/R2R modules fails because __stack_pointer is unavailable.

Changes:

  • Adds an explicit __stack_pointer availability check before WebAssembly instantiation.
  • Logs instantiation failures with the wasm path and error message.

Comment thread src/coreclr/hosts/corerun/wasm/libCorerun.js
Comment thread src/coreclr/hosts/corerun/wasm/libCorerun.js
@kg
kg marked this pull request as ready for review May 13, 2026 21:46
Copilot AI review requested due to automatic review settings May 13, 2026 21:46
@kg kg added the arch-wasm WebAssembly architecture label May 13, 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/coreclr/hosts/corerun/wasm/libCorerun.js
@kg

kg commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

@kg
kg merged commit ce5ff45 into dotnet:main May 14, 2026
131 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-Host

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants