issues
search
ceifa
/
wasmoon
A real lua 5.4 VM with JS bindings made with webassembly
MIT License
462
stars
27
forks
source link
Added support for forced yield and timeouts
#29
Closed
timstableford
closed
3 years ago
timstableford
commented
3 years ago
This allows registering a hook that runs every X instructions to force a yield. The hook will be run even if the Lua program is stuck in a loop.
The global wasn't being correctly closed and memory free'd, fixed that.
Use finalization registry when yielding a promise to ensure timed out or abandoned yields are still cleaned up.
Resolves
https://github.com/ceifa/wasmoon/issues/19
Resolves https://github.com/ceifa/wasmoon/issues/19