@@ -36,9 +36,9 @@ dictionary ModuleImportDescriptor {
3636
3737[LegacyNamespace=WebAssembly, Constructor(BufferSource bytes), Exposed=(Window,Worker,Worklet)]
3838interface Module {
39- static sequence<ModuleExportDescriptor> exports(Module module );
40- static sequence<ModuleImportDescriptor> imports(Module module );
41- static sequence<ArrayBuffer> customSections(Module module, USVString sectionName);
39+ static sequence<ModuleExportDescriptor> exports(Module moduleObject );
40+ static sequence<ModuleImportDescriptor> imports(Module moduleObject );
41+ static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);
4242};
4343
4444[LegacyNamespace=WebAssembly, Constructor(Module module, optional object importObject), Exposed=(Window,Worker,Worklet)]
@@ -77,12 +77,19 @@ interface Table {
7777 readonly attribute unsigned long length;
7878};
7979
80+ enum ValueType {
81+ "i32",
82+ "i64",
83+ "f32",
84+ "f64"
85+ };
86+
8087dictionary GlobalDescriptor {
81- required USVString value;
88+ required ValueType value;
8289 boolean mutable = false;
8390};
8491
85- [LegacyNamespace=WebAssembly, Constructor(GlobalDescriptor descriptor, optional any value ), Exposed=(Window,Worker,Worklet)]
92+ [LegacyNamespace=WebAssembly, Constructor(GlobalDescriptor descriptor, optional any v ), Exposed=(Window,Worker,Worklet)]
8693interface Global {
8794 any valueOf();
8895 attribute any value;
0 commit comments