Description
Add a full WebAssembly.Memory-style object projection to AngleSharp.Wasm so WebAssembly modules can expose and interact with linear memory through a browser-like DOM API.
Background
Today, non-function exports are represented as simple descriptors, which is enough for inspection but not for direct usage. A Memory projection would make it possible to work with modules that export or import memory in a way that feels closer to the browser WebAssembly API. This would be useful for code that reads or writes bytes, inspects memory growth, or passes memory objects between host and module boundaries.
Specification
WebAssembly JavaScript API: WebAssembly.Memory
Description
Add a full
WebAssembly.Memory-style object projection to AngleSharp.Wasm so WebAssembly modules can expose and interact with linear memory through a browser-like DOM API.Background
Today, non-function exports are represented as simple descriptors, which is enough for inspection but not for direct usage. A
Memoryprojection would make it possible to work with modules that export or import memory in a way that feels closer to the browser WebAssembly API. This would be useful for code that reads or writes bytes, inspects memory growth, or passes memory objects between host and module boundaries.Specification
WebAssembly JavaScript API:
WebAssembly.Memory