mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
b03138cbff
Add support for shared memory creation in WebAssembly memory API. This API is needed for WPT tests that use shared array buffers. Import related WPT tests.
16 lines
512 B
Text
16 lines
512 B
Text
dictionary MemoryDescriptor {
|
|
required [EnforceRange] unsigned long initial;
|
|
[EnforceRange] unsigned long maximum;
|
|
// https://webassembly.github.io/threads/js-api/index.html#dictdef-memorydescriptor
|
|
boolean shared = false;
|
|
};
|
|
|
|
// 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;
|
|
};
|