Description
When WebAssembly fails to instantiate, the hosting webpage should be able to display an error to the user. Currently, dotnet.create() just fails with Uncaught (in promise) CompileError: WebAssembly.instantiateStreaming(), even when it is inside a try ... catch block.
Reproduction Steps
- Build a .NET WASM Browser project that uses SIMD
- Put
dotnet.create() in try and console.log a message in catch
- Open the webpage using Microsoft Edge with Enhanced Security Mode
Expected behavior
The message should be logged in console
Actual behavior
Uncaught (in promise) CompileError: WebAssembly.instantiateStreaming()

Regression?
No response
Known Workarounds
No response
Configuration
.NET 7 RC2
Microsoft Edge Version 107.0.1418.26 (Official build) (64-bit)
Other information
No response