This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The WebAssembly.Memory.prototype property represents the prototype for the WebAssembly.Memory() constructor.

Property attributes of WebAssembly.Memory.prototype
Writable no
Enumerable no
Configurable no


All WebAssembly.Memory instances inherit from Memory.prototype. The prototype object of the WebAssembly.Memory() constructor can be modified to affect all WebAssembly.Memory instances.


Returns the function that created this object's instance. By default this is the WebAssembly.Memory() constructor.
An accessor property that returns the buffer contained in the memory.


Increases the size of the memory instance by a specified number of WebAssembly pages (each one is 64KB in size).


Specification Status Comment
WebAssembly JavaScript Interface
The definition of 'Memory' in that specification.
Working Draft Initial draft definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support5716522 No4411
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5757 Yes1522 ?117.0

1. This feature is behind the Experimental JavaScript Features preference.

2. Disabled in the Firefox 52 Extended Support Release (ESR).

See also

Document Tags and Contributors

Contributors to this page: fscholz, chrisdavidmills
Last updated by: fscholz,