chung-leong / zigar

Enable the use of Zig code in JavaScript project
https://chung-leong.github.io/zigar/
MIT License
183 stars 3 forks source link

Failing test case: call variadic functions #489

Open chung-leong opened 1 week ago

chung-leong commented 1 week ago
  1) Integration tests (rollup-plugin-zigar, Debug)
       Function calling
         should call variadic functions:
     RuntimeError: table index is out of bounds
      at call-variadic-functions.wasm.variadic.call__anon_4226 (wasm://wasm/call-variadic-functions.wasm-0045e39a:wasm-function[568]:0x2c40f)
      at call-variadic-functions.wasm.thunk-zig.createThunk__anon_3715.ns_variadic.invokeFunction (wasm://wasm/call-variadic-functions.wasm-0045e39a:wasm-function[436]:0x2369f)
      at call-variadic-functions.wasm.runVariadicThunk (wasm://wasm/call-variadic-functions.wasm-0045e39a:wasm-function[42]:0x276a)
      at constructor.runVariadicThunk (file:///tmp/rollup-integration-test/Debug/4125e55965f7acdd58ced9025d3be862.mjs:1815:27)
      at constructor.invokeThunk (file:///tmp/rollup-integration-test/Debug/4125e55965f7acdd58ced9025d3be862.mjs:1223:12)
      at printIntegers (file:///tmp/rollup-integration-test/Debug/4125e55965f7acdd58ced9025d3be862.mjs:1143:17)
      at file:///home/cleong/zigar/zigar-compiler/test/integration/function-calling/tests.js:556:42
      at capture (file:///home/cleong/zigar/zigar-compiler/test/integration/test-utils.js:11:11)
      at Context.<anonymous> (file:///home/cleong/zigar/zigar-compiler/test/integration/function-calling/tests.js:556:28)
chung-leong commented 5 days ago

Crashing in Node as well.

chung-leong commented 4 days ago

Still crashing in Node on MacOS.

chung-leong commented 1 day ago

Closed by accident.