From 826eb68ecde9f8e53c83c7d1380af2e95c21b1ab Mon Sep 17 00:00:00 2001 From: CountBleck Date: Mon, 18 Aug 2025 21:32:52 -0700 Subject: [PATCH] LibWeb: Add test ensuring re-exported Wasm memories equal the import If a memory is imported by a Wasm instance and re-exported, the export's value should be the exact same WebAssembly.Memory object as the WebAssembly.Memory object passed for the import. --- .../Wasm/WebAssembly-memory-reexport.txt | 1 + .../Wasm/WebAssembly-memory-reexport.html | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/Wasm/WebAssembly-memory-reexport.txt create mode 100644 Tests/LibWeb/Text/input/Wasm/WebAssembly-memory-reexport.html diff --git a/Tests/LibWeb/Text/expected/Wasm/WebAssembly-memory-reexport.txt b/Tests/LibWeb/Text/expected/Wasm/WebAssembly-memory-reexport.txt new file mode 100644 index 00000000000..4409c55951f --- /dev/null +++ b/Tests/LibWeb/Text/expected/Wasm/WebAssembly-memory-reexport.txt @@ -0,0 +1 @@ +Re-exported memory equals imported memory: true diff --git a/Tests/LibWeb/Text/input/Wasm/WebAssembly-memory-reexport.html b/Tests/LibWeb/Text/input/Wasm/WebAssembly-memory-reexport.html new file mode 100644 index 00000000000..bdd06b3b341 --- /dev/null +++ b/Tests/LibWeb/Text/input/Wasm/WebAssembly-memory-reexport.html @@ -0,0 +1,20 @@ + + +