diff options
author | Li Jin <dragon-fly@qq.com> | 2025-04-11 17:33:12 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2025-04-11 17:33:12 +0800 |
commit | e96308912e2e04535836a2c282b0a7300d2d81fd (patch) | |
tree | 9c6f55dbce6193dac6f78dad94f76ad1c0a6ef1a /spec/outputs/5.1/try_catch.lua | |
parent | 9750786a5c03b5ce3ea22b240d1b3cd34990856b (diff) | |
download | yuescript-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 '')
-rw-r--r-- | spec/outputs/5.1/try_catch.lua | 6 |
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() |
9 | end | 9 | end |
10 | local _anon_func_3 = function(tb) | 10 | local _anon_func_3 = function(tb) |
11 | return tb.func() | 11 | return (tb.func()) |
12 | end | 12 | end |
13 | local _anon_func_4 = function(tb) | 13 | local _anon_func_4 = function(tb) |
14 | return tb:func(1, 2, 3) | 14 | return (tb:func(1, 2, 3)) |
15 | end | 15 | end |
16 | local _anon_func_5 = function(tb) | 16 | local _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 |