@@ -372,11 +372,11 @@ dictionary WebAssemblyCompileOptions {
372372
373373[Exposed=*]
374374namespace WebAssembly {
375- boolean validate(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
376- Promise<Module> compile(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
375+ boolean validate([AllowResizable] AllowSharedBufferSource bytes, optional WebAssemblyCompileOptions options = {});
376+ Promise<Module> compile([AllowResizable] AllowSharedBufferSource bytes, optional WebAssemblyCompileOptions options = {});
377377
378378 Promise<WebAssemblyInstantiatedSource> instantiate(
379- BufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options = {});
379+ [AllowResizable] AllowSharedBufferSource bytes, optional object importObject, optional WebAssemblyCompileOptions options = {});
380380
381381 Promise<Instance> instantiate(
382382 Module moduleObject, optional object importObject);
@@ -704,7 +704,7 @@ dictionary ModuleImportDescriptor {
704704
705705[LegacyNamespace=WebAssembly, Exposed=*]
706706interface Module {
707- constructor(BufferSource bytes, optional WebAssemblyCompileOptions options = {});
707+ constructor([AllowResizable] AllowSharedBufferSource bytes, optional WebAssemblyCompileOptions options = {});
708708 static sequence<ModuleExportDescriptor> exports(Module moduleObject);
709709 static sequence<ModuleImportDescriptor> imports(Module moduleObject);
710710 static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);
0 commit comments