mirror of
https://github.com/mlua-rs/mlua
synced 2026-06-08 16:05:43 +00:00
e3f34f319c
The definition of lua_error in all of Lua 5.1 through 5.4 says lua_error returns int, but the Rust definition of the same function treats it as void (because it's known not to return). This causes link-time errors when building for wasm targets because the wasm linker is aware of function return types and errors out if they differ between definition and declaration.