mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
These no longer serve any purpose now that we run the IDLGenerator on all of these files at once.
20 lines
885 B
Plaintext
20 lines
885 B
Plaintext
dictionary WebAssemblyInstantiatedSource {
|
|
required Module module;
|
|
required Instance instance;
|
|
};
|
|
|
|
// https://webassembly.github.io/spec/js-api/#webassembly-namespace
|
|
// https://webassembly.github.io/spec/web-api/index.html#streaming-modules
|
|
[Exposed=*, WithGCVisitor, WithFinalizer, WithInitializer]
|
|
namespace WebAssembly {
|
|
// FIXME: Streaming APIs are supposed to be only exposed to Window, Worker
|
|
|
|
boolean validate(BufferSource bytes);
|
|
Promise<Module> compile(BufferSource bytes);
|
|
Promise<Module> compileStreaming(Promise<Response> source);
|
|
|
|
Promise<WebAssemblyInstantiatedSource> instantiate(BufferSource bytes, optional object importObject);
|
|
Promise<WebAssemblyInstantiatedSource> instantiateStreaming(Promise<Response> source, optional object importObject);
|
|
Promise<Instance> instantiate(Module moduleObject, optional object importObject);
|
|
};
|