From e96308912e2e04535836a2c282b0a7300d2d81fd Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 11 Apr 2025 17:33:12 +0800 Subject: Fixing issue #206. --- spec/outputs/5.1/attrib.lua | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'spec/outputs/5.1/attrib.lua') diff --git a/spec/outputs/5.1/attrib.lua b/spec/outputs/5.1/attrib.lua index a156e84..bda24bc 100644 --- a/spec/outputs/5.1/attrib.lua +++ b/spec/outputs/5.1/attrib.lua @@ -136,9 +136,11 @@ do end local b if not false then - if x then - b = 1 - end + b = ((function() + if x then + return 1 + end + end)()) end local _close_0 if (function() @@ -164,10 +166,12 @@ do end)(pcall(function() local c if true then - local _exp_0 = x - if "abc" == _exp_0 then - c = 998 - end + c = ((function() + local _exp_0 = x + if "abc" == _exp_0 then + return 998 + end + end)()) end local d if (function() -- cgit v1.2.3-55-g6feb