lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> After "false" is replaced with "foo" we still see the bug:

I was running 5.3. It seems that 5.4 behaves differently.

% nl -ba a
1     debug.sethook(print, "l")
2     if foo then
3       goto EXIT
4       A=2
5     end
6     ::EXIT::

% lua53 -v a
Lua 5.3.6  Copyright (C) 1994-2020 Lua.org, PUC-Rio
line 2
line 3
line 6

% lua54 -v a
Lua 5.4.1  Copyright (C) 1994-2020 Lua.org, PUC-Rio
line 3
line 6