holzschu / a-Shell-commands

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

QuickJS doesn't handle file #27

Closed X7md closed 2 years ago

X7md commented 2 years 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 2 years ago

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