From 828fee1907a8fd8773d304d3d9a49fc0e2f8cb84 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 17 Jul 2025 19:22:33 +0800 Subject: Fixed a crash. --- spec/outputs/codes_from_doc.lua | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'spec/outputs/codes_from_doc.lua') diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua index 085179c..f1e46d9 100644 --- a/spec/outputs/codes_from_doc.lua +++ b/spec/outputs/codes_from_doc.lua @@ -209,14 +209,16 @@ for _key_0, _value_0 in pairs(b) do end end merge = _tab_0 -print((function() +local last +do local _item_0 = data.items - return _item_0[#_item_0] -end)()) -print((function() + last = _item_0[#_item_0] +end +local second_last +do local _item_0 = data.items - return _item_0[#_item_0 - 1] -end)()) + second_last = _item_0[#_item_0 - 1] +end local mt = { } local add add = function(self, right) @@ -2603,14 +2605,16 @@ for _key_0, _value_0 in pairs(b) do end end merge = _tab_0 -print((function() +local last +do local _item_0 = data.items - return _item_0[#_item_0] -end)()) -print((function() + last = _item_0[#_item_0] +end +local second_last +do local _item_0 = data.items - return _item_0[#_item_0 - 1] -end)()) + second_last = _item_0[#_item_0 - 1] +end local mt = { } local add add = function(self, right) @@ -3207,6 +3211,7 @@ local some_string = "Here is a string\n that has a line break in it." print("I am " .. tostring(math.random() * 100) .. "% sure.") local integer = 1000000 local hex = 0xEFBBBF +local binary = 19 local my_function my_function = function() end my_function() -- cgit v1.2.3-55-g6feb