Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions document/js-api/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,11 @@ dictionary WebAssemblyCompileOptions {

[Exposed=*]
namespace WebAssembly {
boolean validate(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
Promise<Module> compile(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
boolean validate([AllowResizable] AllowSharedBufferSource bytes, optional WebAssemblyCompileOptions options = {});
Promise<Module> compile([AllowResizable] AllowSharedBufferSource bytes, optional WebAssemblyCompileOptions options = {});

Promise<WebAssemblyInstantiatedSource> instantiate(
BufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options = {});
[AllowResizable] AllowSharedBufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options = {});

Promise<Instance> instantiate(
Module moduleObject, optional object importObject);
Expand Down Expand Up @@ -704,7 +704,7 @@ dictionary ModuleImportDescriptor {

[LegacyNamespace=WebAssembly, Exposed=*]
interface Module {
constructor(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
constructor([AllowResizable] AllowSharedBufferSource bytes, optional WebAssemblyCompileOptions options = {});
static sequence<ModuleExportDescriptor> exports(Module moduleObject);
static sequence<ModuleImportDescriptor> imports(Module moduleObject);
static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);
Expand Down
Loading