Skip to content

Commit

Permalink
[test][js-api] Fix import of table64 and memory64 (#84)
Browse files Browse the repository at this point in the history
Provide imports for 'table64' and 'memory64'. This fixes a js-api test
failures.
  • Loading branch information
backes authored Oct 7, 2024
1 parent c157e61 commit 1fca55a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion interpreter/script/js.ml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ let spectest = {
global_f32: 666.6,
global_f64: 666.6,
table: new WebAssembly.Table({initial: 10, maximum: 20, element: 'anyfunc'}),
memory: new WebAssembly.Memory({initial: 1, maximum: 2})
table64: new WebAssembly.Table(
{initial: 10n, maximum: 20n, element: 'anyfunc', index: 'i64'}),
memory: new WebAssembly.Memory({initial: 1, maximum: 2}),
memory64: new WebAssembly.Memory({initial: 1n, maximum: 2n, index: 'i64'})
};

let handler = {
Expand Down

0 comments on commit 1fca55a

Please sign in to comment.