Definition
WebAssembly JavaScript Interface defines WebAssembly
[Exposed=*]
namespace WebAssembly {
boolean validate(BufferSource bytes);
Promise<Module> compile(BufferSource bytes);
Promise<WebAssemblyInstantiatedSource> instantiate(
BufferSource bytes, optional object importObject);
Promise<Instance> instantiate(
Module moduleObject, optional object importObject);
};
This namespace is extended in the following specifications:
- WebAssembly Web API
[Exposed=(Window,Worker)] partial namespace WebAssembly { Promise<Module> compileStreaming(Promise<Response> source); Promise<WebAssemblyInstantiatedSource> instantiateStreaming( Promise<Response> source, optional object importObject); };
Consolidated IDL (across partials)
[Exposed=*]
namespace WebAssembly {
boolean validate(BufferSource bytes);
Promise<Module> compile(BufferSource bytes);
Promise<WebAssemblyInstantiatedSource> instantiate(
BufferSource bytes, optional object importObject);
Promise<Instance> instantiate(
Module moduleObject, optional object importObject);
Promise<Module> compileStreaming(Promise<Response> source);
Promise<WebAssemblyInstantiatedSource> instantiateStreaming(
Promise<Response> source, optional object importObject);
};
Referring specifications
- WebAssembly Web API refers to
WebAssembly