holzschu / a-Shell-commands

shell commands, pre-compiled to webAssembly, ready to use in a-Shell
554 stars 21 forks source link

QuickJS doesn't handle file #27

Closed X7md closed 1 year ago

X7md commented 1 year ago

I try use prebuild quickJS WASI: https://wapm.io/saghul/quickjs

But it's not works with file pass as argument

qjs <my file>

Output is nothing.

But it's works with inline execute

qjs -e 'console.log("Hello")'

and I don't why...

X7md commented 1 year ago

This because wasi limitation, and could be solve by compile using https://github.com/holzschu/wasi-sdk