1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:17:35 +00:00

Meta+LibWasm: Add support for module linking tests

This commit makes the linking tests in the wasm spec test run.
This commit is contained in:
Ali Mohammad Pur 2021-06-21 20:10:41 +04:30 committed by Ali Mohammad Pur
parent 5c90c389c3
commit 9c5d38b7db
3 changed files with 218 additions and 36 deletions

View file

@ -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", () => {