W3cubDocs

/JavaScript

WebAssembly.module.prototype

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

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

Description

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

Properties

Module.prototype.constructor
Returns the function that created this object's instance. By default this is the WebAssembly.Module() constructor.

Methods

None.

Specifications

Specification Status Comment
Web Assembly JavaScript API
The definition of 'WebAssembly.Module()' in that specification.
Draft Initial draft definition.

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support No support[1] No support No support[2] No support No support[1] No support
Feature Android Android Webview Edge Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile Chrome for Android
Basic support No support No support[1] No support No support[2] No support No support No support No support[1]

[1] Experimental support can be enabled in Chrome 51+ and Opera 38+ by going to chrome://flags and enabling the Experimental WebAssembly flag.

[2] Experimental support can be enabled in Firefox 47+ by enabling the javascript.options.wasm flag in about:config.

See also

© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Module/prototype