System.Runtime.InteropServices.Javascript is getting trimmed out in some cases for browser-wasm #48522
Labels
arch-wasm
WebAssembly architecture
area-System.Runtime.InteropServices.JavaScript
bug
linkable-framework
Issues associated with delivering a linker friendly framework
Milestone
When trying to enable the linker Trimming Tests to run on browser-wasm, we found that some tests would fail due to the fact that System.Runtime.InteropServices.Javascript.dll is not getting preserved correctly when the app is built, causing runtime crashes when the test needs to marshal some types. One example of a test case that fails is GenericArraySortHelperTest which passes just fine if we manually root the IS.Javascript.dll, but if we remove that workaround the test fails with:
PR #48429 is adding a workaround for now which is rooting System.Runtime.InteropServices.Javascript.dll for the browser-wasm trimming tests so that we can have all tests running and passing, but this workaround should be removed once the underlying problem is fixed.
cc: @marek-safar @eerhardt @lewing
The text was updated successfully, but these errors were encountered: