Skip to content

Commit 839e80a

Browse files
committed
fix wasm table test case
1 parent 7c7af01 commit 839e80a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

test/cases/wasm/table/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ it("should support exported tables", function() {
1919
});
2020
});
2121

22-
// it("should support imported tables", function() {
23-
// return import("./wasm-table-imported.wasm").then(function(wasm) {
24-
// expect(wasm.callByIndex(0)).toEqual(42);
25-
// expect(wasm.callByIndex(1)).toEqual(13);
26-
// expect(() => wasm.callByIndex(2)).toThrow("invalid function");
27-
// });
28-
// });
22+
it("should support imported tables", function() {
23+
return import("./wasm-table-imported.wasm").then(function(wasm) {
24+
expect(wasm.callByIndex(0)).toEqual(42);
25+
expect(wasm.callByIndex(1)).toEqual(13);
26+
expect(() => wasm.callByIndex(2)).toThrow("invalid function");
27+
});
28+
});
49 Bytes
Binary file not shown.
-105 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)