Skip to content

Conversation

@pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Oct 1, 2025

  • improved CI path evaluation
  • added runtime asserts for internals and runtimeApi objects
  • fixed merging
  • set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT

@pavelsavara pavelsavara added this to the 11.0.0 milestone Oct 1, 2025
@pavelsavara pavelsavara self-assigned this Oct 1, 2025
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-Host os-browser Browser variant of arch-wasm labels Oct 1, 2025
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

@pavelsavara pavelsavara marked this pull request as ready for review October 1, 2025 14:03
Copilot AI review requested due to automatic review settings October 1, 2025 14:03
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 issues with corerun in the browser environment by ensuring proper initialization of the RuntimeAPI object across multiple native modules. The changes address scenarios where the RuntimeAPI might be undefined, which could cause runtime failures.

Key changes:

  • Adds defensive initialization of RuntimeAPI objects in native modules
  • Updates pipeline configurations to properly handle WASM CoreCLR runtime tests
  • Adds eslint disable directive for unused variable warnings

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/native/libs/System.Runtime.InteropServices.JavaScript.Native/interop/index.ts Adds defensive initialization for RuntimeAPI object before assignment
src/native/libs/System.Native.Browser/utils/index.ts Adds defensive initialization for RuntimeAPI object before assignment
src/native/libs/System.Native.Browser/libSystem.Native.Browser.extpost.js Adds defensive initialization and eslint disable directive
src/native/corehost/browserhost/host/index.ts Adds defensive initialization for RuntimeAPI object before assignment
eng/pipelines/runtime.yml Updates pipeline condition to include new WASM CoreCLR runtime test path variables
eng/pipelines/common/templates/wasm-runtime-tests.yml Updates path variable reference from generic to mono-specific
eng/pipelines/common/evaluate-default-paths.yml Adds new WASM CoreCLR runtime tests subset and updates path configurations

Copy link
Member

@radekdoulik radekdoulik left a comment

Choose a reason for hiding this comment

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

LGTM

@radekdoulik radekdoulik enabled auto-merge (squash) October 2, 2025 06:18
@pavelsavara
Copy link
Member Author

I filled #120317

@radekdoulik radekdoulik merged commit 380f133 into dotnet:main Oct 2, 2025
158 of 164 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-Host os-browser Browser variant of arch-wasm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants