From 1fca55a558ffe8d3e5d13930afd6f1453c45a250 Mon Sep 17 00:00:00 2001 From: Clemens Backes Date: Tue, 8 Oct 2024 01:04:40 +0200 Subject: [PATCH] [test][js-api] Fix import of table64 and memory64 (#84) Provide imports for 'table64' and 'memory64'. This fixes a js-api test failures. --- interpreter/script/js.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interpreter/script/js.ml b/interpreter/script/js.ml index 7bacb51824..c0bd6f2a24 100644 --- a/interpreter/script/js.ml +++ b/interpreter/script/js.ml @@ -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 = {