mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 12:32:21 +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
Notes:
sideshowbarker
2024-07-18 11:57:02 +09:00
Author: https://github.com/alimpfard
Commit: 9c5d38b7db
Pull-request: https://github.com/SerenityOS/serenity/pull/8180
Reviewed-by: https://github.com/linusg
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