LibWeb: Support creation of shared memory in WebAssembly API

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.
This commit is contained in:
Konstantin Konstantin 2024-12-07 21:17:20 +01:00 committed by Ali Mohammad Pur
commit b03138cbff
Notes: github-actions[bot] 2024-12-08 21:11:34 +00:00
13 changed files with 516 additions and 16 deletions

View file

@ -0,0 +1,8 @@
Harness status: OK
Found 3 tests
3 Pass
Pass Shared memory without maximum
Pass Order of evaluation for descriptor (with shared)
Pass Shared memory

View file

@ -0,0 +1,25 @@
Harness status: OK
Found 19 tests
18 Pass
1 Fail
Pass Missing arguments
Pass Branding
Pass Zero initial
Pass Zero initial with valueOf
Pass Non-zero initial
Pass Zero initial with respected maximum
Pass Zero initial with respected maximum grown twice
Pass Zero initial growing too much
Pass Out-of-range argument: undefined
Pass Out-of-range argument: NaN
Pass Out-of-range argument: Infinity
Pass Out-of-range argument: -Infinity
Pass Out-of-range argument: -1
Pass Out-of-range argument: 4294967296
Pass Out-of-range argument: 68719476736
Pass Out-of-range argument: "0x100000000"
Pass Out-of-range argument: object "[object Object]"
Pass Stray argument
Fail Growing shared memory does not detach old buffer