Description
Add support for WebAssembly.validate(bytes) in AngleSharp.Wasm so callers can check whether a binary module is valid before attempting to compile or instantiate it.
Background
Validation is useful for quick preflight checks, especially when modules are fetched from external sources or generated dynamically. It can be used to provide faster failure feedback, better diagnostics, and a cleaner separation between “is this a valid module?” and “compile and run this module”.
Specification
WebAssembly JavaScript API: WebAssembly.validate(bufferSource)
Description
Add support for
WebAssembly.validate(bytes)in AngleSharp.Wasm so callers can check whether a binary module is valid before attempting to compile or instantiate it.Background
Validation is useful for quick preflight checks, especially when modules are fetched from external sources or generated dynamically. It can be used to provide faster failure feedback, better diagnostics, and a cleaner separation between “is this a valid module?” and “compile and run this module”.
Specification
WebAssembly JavaScript API:
WebAssembly.validate(bufferSource)