mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
27 lines
745 B
Text
27 lines
745 B
Text
enum ImportExportKind {
|
|
"function",
|
|
"table",
|
|
"memory",
|
|
"global"
|
|
};
|
|
|
|
dictionary ModuleExportDescriptor {
|
|
required USVString name;
|
|
required ImportExportKind kind;
|
|
};
|
|
|
|
dictionary ModuleImportDescriptor {
|
|
required USVString module;
|
|
required USVString name;
|
|
required ImportExportKind kind;
|
|
};
|
|
|
|
// https://webassembly.github.io/spec/js-api/#modules
|
|
[LegacyNamespace=WebAssembly, Exposed=*]
|
|
interface Module {
|
|
constructor(BufferSource bytes);
|
|
|
|
[FIXME] static sequence<ModuleExportDescriptor> exports(Module moduleObject);
|
|
[FIXME] static sequence<ModuleImportDescriptor> imports(Module moduleObject);
|
|
[FIXME] static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);
|
|
};
|