ceifa / wasmoon

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

Leverage WASM_BIGINT for 64-bit integers #100

Closed Sapu94 closed 10 months ago

Sapu94 commented 10 months ago

Setting WASM_BIGINT enables support for using the bigint type in JS to pass 64-bit integers. This allows compiling lua with full 64-bit integer/float support. I ran this against my (fairly large) lua application and it seemed to resolve all the issues I was previously having with large numbers in lua.