Skip to content

WebAssembly.Memory information #1024

@jfbastien

Description

@jfbastien

It seems useful and low-cost to add the following functionality to WebAssembly.Memory:

  • initial size
  • maximum size
  • current (or byteLength to match ArrayBuffer?)

It would also be nice to have similar accessors on WebAssembly.Instance: an Instance's Memory isn't necessarily exported, and therefore isn't accessible. Introspecting its size would still be nice.

Thoughts? Name bikeshed?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions