Skip to content

Commit 1fca55a

Browse files
authored
[test][js-api] Fix import of table64 and memory64 (#84)
Provide imports for 'table64' and 'memory64'. This fixes a js-api test failures.
1 parent c157e61 commit 1fca55a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

interpreter/script/js.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ let spectest = {
3636
global_f32: 666.6,
3737
global_f64: 666.6,
3838
table: new WebAssembly.Table({initial: 10, maximum: 20, element: 'anyfunc'}),
39-
memory: new WebAssembly.Memory({initial: 1, maximum: 2})
39+
table64: new WebAssembly.Table(
40+
{initial: 10n, maximum: 20n, element: 'anyfunc', index: 'i64'}),
41+
memory: new WebAssembly.Memory({initial: 1, maximum: 2}),
42+
memory64: new WebAssembly.Memory({initial: 1n, maximum: 2n, index: 'i64'})
4043
};
4144

4245
let handler = {

0 commit comments

Comments
 (0)