You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two reflection invoke test variants produce IndexOutOfRangeException instead of the expected NotSupportedException under trimmed browser-Wasm CoreCLR ReadyToRun.
The failures reproduced in PR #133656, Azure DevOps build 1603190, Helix job 3158c862-61f5-4cf9-bb24-6ecdf2cfe895, work items WasmTestOnChrome-CLR-ST-Batch-10 and Batch-12.
Expected behavior
MethodInfo.Invoke rejects the by-ref-like argument shape with NotSupportedException.
Actual behavior
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.NotSupportedException)
Actual: typeof(System.IndexOutOfRangeException)
---- System.IndexOutOfRangeException: Index was outside the bounds of the array.
Regression?
Unknown. The same test has existing platform-specific exclusions for Mono and Apple mobile, but this browser CoreCLR ReadyToRun configuration is newly enabled.
Known Workarounds
Temporarily exclude this exact test method only when PlatformDetection.IsWasmReadyToRun is true. Interpreter and other-platform coverage remains enabled.
Activity
dotnet-policy-service commentedon Sep 19, 2026
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Sep 19, 2026
Tagging subscribers to this area: @steveisok, @dotnet/area-system-reflection
See info in area-owners.md if you want to be subscribed.