I'm surprised nobody said it here - it would be even cooler with webassembly! Imagine writing Lua code instead of JS...
EDIT: though now that I look at it, it's already possible:
EDIT: though now that I look at it, it's already possible:
The big thing lua.vm.js needs is weakrefs https://github.com/tc39/proposal-weakrefs