A bug in the wptsync caused us to miss some pushes during recent updates. This commit copies the head of wpt at the specified revision over and re-applies local patches that weren't in that revision. That means we should be able to resume normal syncs after fixing the bug. wpt-head: 55e3f8d27d6be17fa75bebe426c39cc51b3b26d4 wpt-type: landing Differential Revision: https://phabricator.services.mozilla.com/D90823
107 lines
2.9 KiB
Plaintext
107 lines
2.9 KiB
Plaintext
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into webref
|
|
// (https://github.com/w3c/webref)
|
|
// Source: WebAssembly JavaScript Interface (https://webassembly.github.io/spec/js-api/)
|
|
|
|
dictionary WebAssemblyInstantiatedSource {
|
|
required Module module;
|
|
required Instance instance;
|
|
};
|
|
|
|
[Exposed=(Window,Worker,Worklet)]
|
|
namespace WebAssembly {
|
|
boolean validate(BufferSource bytes);
|
|
Promise<Module> compile(BufferSource bytes);
|
|
|
|
Promise<WebAssemblyInstantiatedSource> instantiate(
|
|
BufferSource bytes, optional object importObject);
|
|
|
|
Promise<Instance> instantiate(
|
|
Module moduleObject, optional object importObject);
|
|
};
|
|
|
|
enum ImportExportKind {
|
|
"function",
|
|
"table",
|
|
"memory",
|
|
"global"
|
|
};
|
|
|
|
dictionary ModuleExportDescriptor {
|
|
required USVString name;
|
|
required ImportExportKind kind;
|
|
// Note: Other fields such as signature may be added in the future.
|
|
};
|
|
|
|
dictionary ModuleImportDescriptor {
|
|
required USVString module;
|
|
required USVString name;
|
|
required ImportExportKind kind;
|
|
};
|
|
|
|
[LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
|
|
interface Module {
|
|
constructor(BufferSource bytes);
|
|
static sequence<ModuleExportDescriptor> exports(Module moduleObject);
|
|
static sequence<ModuleImportDescriptor> imports(Module moduleObject);
|
|
static sequence<ArrayBuffer> customSections(Module moduleObject, DOMString sectionName);
|
|
};
|
|
|
|
[LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
|
|
interface Instance {
|
|
constructor(Module module, optional object importObject);
|
|
readonly attribute object exports;
|
|
};
|
|
|
|
dictionary MemoryDescriptor {
|
|
required [EnforceRange] unsigned long initial;
|
|
[EnforceRange] unsigned long maximum;
|
|
};
|
|
|
|
[LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
|
|
interface Memory {
|
|
constructor(MemoryDescriptor descriptor);
|
|
unsigned long grow([EnforceRange] unsigned long delta);
|
|
readonly attribute ArrayBuffer buffer;
|
|
};
|
|
|
|
enum TableKind {
|
|
"anyfunc",
|
|
// Note: More values may be added in future iterations,
|
|
// e.g., typed function references, typed GC references
|
|
};
|
|
|
|
dictionary TableDescriptor {
|
|
required TableKind element;
|
|
required [EnforceRange] unsigned long initial;
|
|
[EnforceRange] unsigned long maximum;
|
|
};
|
|
|
|
[LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
|
|
interface Table {
|
|
constructor(TableDescriptor descriptor);
|
|
unsigned long grow([EnforceRange] unsigned long delta);
|
|
Function? get([EnforceRange] unsigned long index);
|
|
undefined set([EnforceRange] unsigned long index, Function? value);
|
|
readonly attribute unsigned long length;
|
|
};
|
|
|
|
enum ValueType {
|
|
"i32",
|
|
"i64",
|
|
"f32",
|
|
"f64"
|
|
};
|
|
|
|
dictionary GlobalDescriptor {
|
|
required ValueType value;
|
|
boolean mutable = false;
|
|
};
|
|
|
|
[LegacyNamespace=WebAssembly, Exposed=(Window,Worker,Worklet)]
|
|
interface Global {
|
|
constructor(GlobalDescriptor descriptor, optional any v);
|
|
any valueOf();
|
|
attribute any value;
|
|
};
|