Skip to content

Generated Lua program produce an error: variable '(for state)' got a non-closable value #81

@ligurio

Description

@ligurio
f = function() end
n = 0
for i in f, f, f, f  do
  if n > 5 then break end
  n = n + 1
end;
  • PUC Rio Lua 5.4: variable '(for state)' got a non-closable value
  • LuaJIT: no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions