1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:47:35 +00:00

LibWeb: Port WebAssembly.Memory to IDL

This commit is contained in:
Timothy Flynn 2023-03-15 19:29:57 -04:00 committed by Andreas Kling
parent de32c44762
commit ca96f8e364
15 changed files with 148 additions and 216 deletions

View 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;
};