From fe878f31e4d6dac73dfd30b250e39cd905d23c23 Mon Sep 17 00:00:00 2001 From: Clemens Backes Date: Fri, 6 Sep 2024 11:25:18 +0200 Subject: [PATCH] [test][js-api] Fix import of table64 and memory64 Provide imports for 'table64' and 'memory64'. This fixes a js-api test failures. --- interpreter/script/js.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interpreter/script/js.ml b/interpreter/script/js.ml index 0a4a60537..276ec5f77 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'}), + table64: new WebAssembly.Table( + {initial: 10, maximum: 20, element: 'anyfunc', index: 'i64'}), memory: new WebAssembly.Memory({initial: 1, maximum: 2}) + memory64: new WebAssembly.Memory({initial: 1, maximum: 2, index: 'i64'}) }; let handler = {