WebAssembly.Memory.prototype

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

Description

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.

Properties

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

Methods

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

Specifications

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

Browser compatibility

Update compatibility data on GitHub
DesktopMobileServer
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung InternetNode.js
Basic supportChrome Full support 57Edge Full support 16Firefox Full support 52
Notes
Full support 52
Notes
Notes Disabled in the Firefox 52 Extended Support Release (ESR).
IE No support NoOpera Full support 44Safari Full support 11WebView Android Full support 57Chrome Android Full support 57Edge Mobile Full support Yes
Disabled
Full support Yes
Disabled
Disabled This feature is behind the Experimental JavaScript Features preference.
Firefox Android Full support 52
Notes
Full support 52
Notes
Notes Disabled in the Firefox 52 Extended Support Release (ESR).
Opera Android ? Safari iOS Full support 11Samsung Internet Android Full support 7.0nodejs Full support 8.0.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
See implementation notes.
See implementation notes.
User must explicitly enable this feature.
User must explicitly enable this feature.

See also

Document Tags and Contributors

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