WebAssembly.compile

E542892

WebAssembly.compile is a JavaScript API function that compiles WebAssembly binary code into an executable WebAssembly.Module object, enabling efficient reuse across multiple instantiations.

Jump to: Statements Referenced by

Statements (47)

Predicate Object
instanceOf JavaScript function
WebAssembly JavaScript API feature
asynchronous true
availableIn Node.js with WebAssembly support
web browsers with WebAssembly support
belongsToNamespace WebAssembly NERFINISHED
canBePolyfilled partially, using WebAssembly.instantiate and caching modules manually
canBeUsedWith WebAssembly.instantiate NERFINISHED
WebAssembly.instantiateStreaming NERFINISHED
canRejectWith RangeError
TypeError NERFINISHED
compilationStage ahead-of-time compilation of WebAssembly binary
creates WebAssembly.Module NERFINISHED
definedIn WebAssembly JavaScript API NERFINISHED
errorCondition invalid WebAssembly binary code
malformed WebAssembly module
errorType WebAssembly.CompileError NERFINISHED
executionContext main JavaScript thread
hasParameter bufferSource
hasParameterType ArrayBuffer
BufferSource
TypedArray NERFINISHED
hasReturnType Promise
hostEnvironment JavaScript runtime
Web platform
inputFormat WebAssembly binary format NERFINISHED
introducedFor efficient WebAssembly compilation in JavaScript
isDeterministic compilation result is deterministic for same binary and environment
isStaticMethodOf WebAssembly (global object) NERFINISHED
languageBinding JavaScript NERFINISHED
nonBlocking true
outputType WebAssembly.Module NERFINISHED
purpose compile WebAssembly binary code
enable reuse of compiled WebAssembly.Module across multiple instantiations
relatedFunction WebAssembly.compileStreaming NERFINISHED
WebAssembly.instantiate NERFINISHED
WebAssembly.validate
requires valid WebAssembly module header
returns Promise that resolves to WebAssembly.Module
securityModel subject to WebAssembly sandboxing rules
specifies compilation of binary code only (no instantiation)
standardizedIn WebAssembly JavaScript Interface specification NERFINISHED
supportsOptimization true
supportsReuse true
supportsSourceCaching implementation-dependent
threadingModel can be used from Web Workers
usagePattern compile once and instantiate multiple times

Referenced by (3)

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

WebAssembly.compileStreaming alternativeTo WebAssembly.compile
WebAssembly.instantiate relatedFunction WebAssembly.compile