aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/5.1/try_catch.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-04-11 17:33:12 +0800
committerLi Jin <dragon-fly@qq.com>2025-04-11 17:33:12 +0800
commite96308912e2e04535836a2c282b0a7300d2d81fd (patch)
tree9c6f55dbce6193dac6f78dad94f76ad1c0a6ef1a /spec/outputs/5.1/try_catch.lua
parent9750786a5c03b5ce3ea22b240d1b3cd34990856b (diff)
downloadyuescript-0.27.4.tar.gz
yuescript-0.27.4.tar.bz2
yuescript-0.27.4.zip
Fixing issue #206.v0.27.4
Diffstat (limited to 'spec/outputs/5.1/try_catch.lua')
-rw-r--r--spec/outputs/5.1/try_catch.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/outputs/5.1/try_catch.lua b/spec/outputs/5.1/try_catch.lua
index d4c80c1..efd92c6 100644
--- a/spec/outputs/5.1/try_catch.lua
+++ b/spec/outputs/5.1/try_catch.lua
@@ -8,10 +8,10 @@ local _anon_func_2 = function(tb)
8 return tb.func() 8 return tb.func()
9end 9end
10local _anon_func_3 = function(tb) 10local _anon_func_3 = function(tb)
11 return tb.func() 11 return (tb.func())
12end 12end
13local _anon_func_4 = function(tb) 13local _anon_func_4 = function(tb)
14 return tb:func(1, 2, 3) 14 return (tb:func(1, 2, 3))
15end 15end
16local _anon_func_5 = function(tb) 16local _anon_func_5 = function(tb)
17 return tb.func(1) 17 return tb.func(1)
@@ -64,7 +64,7 @@ f = function()
64 print("OK") 64 print("OK")
65 end 65 end
66 if xpcall(function() 66 if xpcall(function()
67 return func(1) 67 return (func(1))
68 end, function(err) 68 end, function(err)
69 return print(err) 69 return print(err)
70 end) then 70 end) then