mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibWeb: Port WebAssembly.Memory to IDL
This commit is contained in:
parent
de32c44762
commit
ca96f8e364
15 changed files with 148 additions and 216 deletions
14
Userland/Libraries/LibWeb/WebAssembly/Memory.idl
Normal file
14
Userland/Libraries/LibWeb/WebAssembly/Memory.idl
Normal file
|
@ -0,0 +1,14 @@
|
|||
dictionary MemoryDescriptor {
|
||||
required [EnforceRange] unsigned long initial;
|
||||
[EnforceRange] unsigned long maximum;
|
||||
};
|
||||
|
||||
// https://webassembly.github.io/spec/js-api/#memories
|
||||
[LegacyNamespace=WebAssembly, Exposed=*]
|
||||
interface Memory {
|
||||
constructor(MemoryDescriptor descriptor);
|
||||
|
||||
unsigned long grow([EnforceRange] unsigned long delta);
|
||||
|
||||
readonly attribute ArrayBuffer buffer;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue