summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWasm/Tests
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-06-21 20:10:41 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-06-22 00:26:25 +0430
commit9c5d38b7dbfc4e0cc919f0ab05235d23e499841e (patch)
tree8d121649538aaaa4b36a548e711fe570df0cefde /Userland/Libraries/LibWasm/Tests
parent5c90c389c3cbce761d711bd2b5a635be196e48a4 (diff)
downloadserenity-9c5d38b7dbfc4e0cc919f0ab05235d23e499841e.zip
Meta+LibWasm: Add support for module linking tests
This commit makes the linking tests in the wasm spec test run.
Diffstat (limited to 'Userland/Libraries/LibWasm/Tests')
-rw-r--r--Userland/Libraries/LibWasm/Tests/Parser/test-basic-load.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWasm/Tests/Parser/test-basic-load.js b/Userland/Libraries/LibWasm/Tests/Parser/test-basic-load.js
index 6e8dc253ae..b2222d5b14 100644
--- a/Userland/Libraries/LibWasm/Tests/Parser/test-basic-load.js
+++ b/Userland/Libraries/LibWasm/Tests/Parser/test-basic-load.js
@@ -26,7 +26,7 @@ test("parsing can pass", () => {
0x01, 0x05, 0x63, 0x6c, 0x61, 0x6e, 0x67, 0x06, 0x31, 0x31, 0x2e, 0x31, 0x2e, 0x30,
]);
// This just checks that the function actually works
- parseWebAssemblyModule(binary);
+ expect(() => parseWebAssemblyModule(binary)).toThrowWithMessage(TypeError, "Link failed");
});
test("parsing can fail", () => {