Skip to content

dotnet.create() does not throw error when WebAssembly.instantiateStreaming() fails #77882

Description

@FranklinWhale

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

  1. Build a .NET WASM Browser project that uses SIMD
  2. Put dotnet.create() in try and console.log a message in catch
  3. 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()

image

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions