ceifa / wasmoon

A real lua 5.4 VM with JS bindings made with webassembly
MIT License
462 stars 27 forks source link

Allow a custom stdout and stderr #21

Open timstableford opened 3 years ago

timstableford commented 3 years ago

Expose a way to capture stdout and stderr

timstableford commented 3 years ago

The same is true here as https://github.com/ceifa/wasmoon/issues/20

This could overwrite print but the IO library complicates that a little. Perhaps just allowing print to be captured is enough

timstableford commented 3 years ago

31 makes it easier to overwrite pre-existing library functions

tims-bsquare commented 9 months ago

I'm happy for this to be closed, overwriting the library print has turned out to be enough for me even if not the simplest approach for library usability