Lua 5.4 <close> cleanup and error masking during unwinding
Lua 5.4 to-be-closed variables The goal is to use Lua 5.4 to-be-closed variables for deterministic resource cleanup when a block exits by return, break, or error. The <close> attribute is valid only in Lua 5.4 and later; Lua 5.3 rejects it as a syntax error, so the same source cannot run unchanged on both interpreters. When the runtime unwinds a scope