1
0
mirror of https://github.com/lua/lua synced 2026-06-08 15:34:49 +00:00
Comments, small changes in the manual, an extra test for errors in
error handling, small changes in tests.
This commit is contained in:
Roberto Ierusalimschy
2025-02-26 11:29:54 -03:00
parent e5f4927a0b
commit ceac82f78b
5 changed files with 33 additions and 9 deletions
+4 -1
View File
@@ -310,8 +310,11 @@ checkprogout("ZYX)\nXYZ)\n")
-- bug since 5.2: finalizer called when closing a state could
-- subvert finalization order
prepfile[[
-- should be called last
-- ensure tables will be collected only at the end of the program
collectgarbage"stop"
print("creating 1")
-- this finalizer should be called last
setmetatable({}, {__gc = function () print(1) end})
print("creating 2")