Skip to content

Commit 37ae401

Browse files
committed
Editorial: Align with Web IDL specification
1 parent 1937e00 commit 37ae401

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
@@ -318,11 +318,11 @@ dictionary WebAssemblyCompileOptions {
318318

319319
[Exposed=*]
320320
namespace WebAssembly {
321-
boolean validate(BufferSource bytes, optional WebAssemblyCompileOptions options);
322-
Promise<Module> compile(BufferSource bytes, optional WebAssemblyCompileOptions options);
321+
boolean validate(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
322+
Promise<Module> compile(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
323323

324324
Promise<WebAssemblyInstantiatedSource> instantiate(
325-
BufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options);
325+
BufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options = {});
326326

327327
Promise<Instance> instantiate(
328328
Module moduleObject, optional object importObject);
@@ -635,7 +635,7 @@ dictionary ModuleImportDescriptor {
635635

636636
[LegacyNamespace=WebAssembly, Exposed=*]
637637
interface Module {
638-
constructor(BufferSource bytes, optional WebAssemblyCompileOptions options);
638+
constructor(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
639639
static sequence<ModuleExportDescriptor> exports(Module moduleObject);
640640
static sequence<ModuleImportDescriptor> imports(Module moduleObject);
641641
static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);

0 commit comments

Comments
 (0)