Description
Add DOM-style projections for the standard WebAssembly error constructors: CompileError, LinkError, and RuntimeError.
Background
Right now, failures are surfaced through .NET exceptions and runtime behavior. Providing these standard JS error constructors would make the package feel more like the browser WebAssembly API and would help consumers write code that matches common WebAssembly error-handling patterns.
Specification
WebAssembly JavaScript API: WebAssembly.CompileError, WebAssembly.LinkError, and WebAssembly.RuntimeError
Description
Add DOM-style projections for the standard WebAssembly error constructors:
CompileError,LinkError, andRuntimeError.Background
Right now, failures are surfaced through .NET exceptions and runtime behavior. Providing these standard JS error constructors would make the package feel more like the browser WebAssembly API and would help consumers write code that matches common WebAssembly error-handling patterns.
Specification
WebAssembly JavaScript API:
WebAssembly.CompileError,WebAssembly.LinkError, andWebAssembly.RuntimeError