summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWasm/Tests/Parser/test-basic-load.js
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWasm/Tests/Parser/test-basic-load.js')
-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", () => {