We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initially discovered in mlua-rs/mlua#485
Easy to reproduce using Luau cli:
$ luau > state = {i = 0} > print("before:", state.i); state.i = state.i + 1; print("after: ", state.i); before: 0 after: 0
Setting optimization level to 0 OR removing lua_setsafeenv call will give right result:
lua_setsafeenv
❯ luau -O0 > state = {i = 0} > print("before:", state.i); state.i = state.i + 1; print("after: ", state.i); before: 0 after: 1
Luau v0.652
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Initially discovered in mlua-rs/mlua#485
Easy to reproduce using Luau cli:
Setting optimization level to 0 OR removing
lua_setsafeenv
call will give right result:Luau v0.652
The text was updated successfully, but these errors were encountered: