mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:17:45 +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:
parent
5c90c389c3
commit
9c5d38b7db
3 changed files with 218 additions and 36 deletions
|
@ -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", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue