ceifa / wasmoon

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

Fixed unncessary yields for timeouts #36

Closed timstableford closed 3 years ago

timstableford commented 3 years ago

This resolves #34 by only yielding in the timeout hook when a timeout has occurred instead of every X instructions. This fixes yielding in JS callbacks causing an inconsistent state.