WebAssembly.instantiate

E127480

WebAssembly.instantiate is a JavaScript API function that compiles and instantiates WebAssembly modules, returning ready-to-use module instances and their exported functions.

All labels observed (4)

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf JavaScriptFunction
WebAssemblyAPI
acceptsType ArrayBuffer
ArrayBufferView
WebAssembly.Module
asynchronous true
availableIn Node.js
WebBrowser
canBeUsedFor accessing WebAssembly exports from JavaScript
compiling WebAssembly binaries at runtime
loading WebAssembly modules dynamically
compilesModule true
definedIn WebAssembly specification
surface form: WebAssembly
errorCondition invalid WebAssembly binary format
linking failure
runtime initialization failure
hasOverload WebAssembly.instantiate(bufferSource, importObject)
WebAssembly.instantiate(moduleObject, importObject)
instantiatesModule true
introducedIn WebAssembly specification
surface form: WebAssembly MVP
isPreferredOver WebAssembly.instantiateStreaming when streaming is not available
parameter bufferSource
importObject
moduleObject
partOf WebAssembly JavaScript Interface
surface form: WebAssembly JavaScript API
relatedFunction WebAssembly.Module
WebAssembly.compile
WebAssembly.instantiateStreaming
returnProperty instance
module
returns Promise
Promise<InstantiateResult>
Promise<WebAssembly.Instance>
returnTypeForBufferOverload WebAssembly.instantiate self-linksurface differs
surface form: WebAssembly.InstantiateResult
returnTypeForModuleOverload WebAssembly.Instance
securityContext subject to same-origin policy for fetched binaries
specifiedIn WebAssembly JavaScript Interface
surface form: WebAssembly JavaScript Interface Specification
standardizedBy ECMAScript
supportsFeature imported functions
imported globals
imported memories
imported tables
supportsStreamingCompilation false
throws WebAssembly.CompileError
WebAssembly.LinkError
WebAssembly.RuntimeError
typicalUsage WebAssembly.instantiate(bytes, imports).then(callback)
usesCompilationPipeline WebAssembly.compile

How these facts were elicited

Referenced by (8)

Full triples — surface form annotated when it differs from this entity's canonical label.

WebAssembly JavaScript Interface definesInteractionBetween WebAssembly.instantiate
this entity surface form: WebAssembly modules
WebAssembly JavaScript Interface definesFunction WebAssembly.instantiate
WebAssembly.LinkError thrownBy WebAssembly.instantiate
WebAssembly.instantiateStreaming advantageOver WebAssembly.instantiate
this entity surface form: WebAssembly.instantiate with ArrayBuffer-based workflows
WebAssembly.instantiateStreaming relatedFunction WebAssembly.instantiate
WebAssembly.RuntimeError usedWith WebAssembly.instantiate
WebAssembly.instantiate returnTypeForBufferOverload WebAssembly.instantiate self-linksurface differs
this entity surface form: WebAssembly.InstantiateResult
WebAssembly.compileStreaming usedWith WebAssembly.instantiate