wasm2lua
wasm2lua copied to clipboard
Try that and never works
Can you show us a demo on how to run
#include<stdio.h> int main() { puts("Hello World\n"); }
?
/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:1840 let loadOffset = ins.args[0].value; ^
TypeError: Cannot read properties of undefined (reading 'value')
at wasm2lua.processInstructionsPass2 (/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:1840:62)
at wasm2lua.processFunc (/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:853:30)
at wasm2lua.processModule (/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:434:38)
at wasm2lua.process (/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:335:38)
at new wasm2lua (/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:105:14)
at Object.
cqwrteur@Home-Server:~/myhome/wasm2lua$ wasm2lua ./a out.lua /home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:1790 let loadOffset = ins.args[0].value; ^
TypeError: Cannot read properties of undefined (reading 'value')
at wasm2lua.processInstructionsPass2 (/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:1790:58)
at wasm2lua.processFunc (/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:853:30)
at wasm2lua.processModule (/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:434:38)
at wasm2lua.process (/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:335:38)
at new wasm2lua (/home/cqwrteur/myhome/wasm2lua/node_modules/wasm2lua/js/index.js:105:14)
at Object.
Node.js v18.0.0-pre
I may not be able to debug this myself, but could I ask a favour? Could you attach the .wasm file that you used to generate this error?
If you are feeling extra brave, you can also try to attach a minimum reproducible example
Hi I'd like to +1 this issue. I installed wasm2lua using yarn and ran into a similar if not the same error report. I tested this on .wasm files you provided in https://github.com/SwadicalRag/bullet3-lua/releases/ and https://github.com/SwadicalRag/brotli-lua/releases/ and did not have any success. Are you still able to get it to work yourself?