Skip to content

Commit 7d0b519

Browse files
autokagamieqrion
authored andcommitted
Editorial: Align with Web IDL specification
1 parent 9cdd245 commit 7d0b519

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

document/js-api/index.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,11 @@ dictionary WebAssemblyCompileOptions {
335335

336336
[Exposed=*]
337337
namespace WebAssembly {
338-
boolean validate(BufferSource bytes, optional WebAssemblyCompileOptions options);
339-
Promise<Module> compile(BufferSource bytes, optional WebAssemblyCompileOptions options);
338+
boolean validate(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
339+
Promise<Module> compile(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
340340

341341
Promise<WebAssemblyInstantiatedSource> instantiate(
342-
BufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options);
342+
BufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options = {});
343343

344344
Promise<Instance> instantiate(
345345
Module moduleObject, optional object importObject);
@@ -655,7 +655,7 @@ dictionary ModuleImportDescriptor {
655655

656656
[LegacyNamespace=WebAssembly, Exposed=*]
657657
interface Module {
658-
constructor(BufferSource bytes, optional WebAssemblyCompileOptions options);
658+
constructor(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
659659
static sequence<ModuleExportDescriptor> exports(Module moduleObject);
660660
static sequence<ModuleImportDescriptor> imports(Module moduleObject);
661661
static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);

0 commit comments

Comments
 (0)