aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/unicode/try_catch.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2024-05-16 17:25:37 +0800
committerLi Jin <dragon-fly@qq.com>2024-05-16 17:25:37 +0800
commitfe317e2bdd9cb60b3c7cd347e21ce65cf90396e7 (patch)
treeed0b010b08f91fdb2bc9a4df18e8d638d47b1c7a /spec/outputs/unicode/try_catch.lua
parentc857b3b83c7485693bfcc2b65e9e6e95107396f4 (diff)
downloadyuescript-0.23.4.tar.gz
yuescript-0.23.4.tar.bz2
yuescript-0.23.4.zip
fix ambiguous issue in try-catch syntax.v0.23.4
Diffstat (limited to 'spec/outputs/unicode/try_catch.lua')
-rw-r--r--spec/outputs/unicode/try_catch.lua39
1 files changed, 24 insertions, 15 deletions
diff --git a/spec/outputs/unicode/try_catch.lua b/spec/outputs/unicode/try_catch.lua
index fde63d6..7d95f9b 100644
--- a/spec/outputs/unicode/try_catch.lua
+++ b/spec/outputs/unicode/try_catch.lua
@@ -14,19 +14,28 @@ do
14 end, 1, 2, 3) 14 end, 1, 2, 3)
15 _u6210_u529f, _u7ed3_u679c = pcall(_u51fd_u6570, 1, 2, 3) 15 _u6210_u529f, _u7ed3_u679c = pcall(_u51fd_u6570, 1, 2, 3)
16end 16end
17pcall(_u8868["函数"]) 17pcall(function()
18pcall(_u8868["函数"]) 18 return _u8868["函数"]
19pcall(_u8868["函数"]) 19end)
20pcall((_u8868["函数"])) 20pcall(function()
21pcall(((function() 21 return _u8868["函数"]()
22 local _base_0 = _u8868 22end)
23 local _fn_0 = _base_0["函数"] 23pcall(function()
24 return _fn_0 and function(...) 24 return _u8868["函数"]()
25 return _fn_0(_base_0, ...) 25end)
26 end 26pcall(function()
27end)()), 1, 2, 3) 27 return _u8868["函数"]()
28pcall(_u8868["函数"], 1) 28end)
29pcall(_u8868["函数"], 1) 29pcall(function()
30 local _call_0 = _u8868
31 return _call_0["函数"](_call_0, 1, 2, 3)
32end)
33pcall(function()
34 return _u8868["函数"](1)
35end)
36pcall(function()
37 return _u8868["函数"](1)
38end)
30if (xpcall(_u51fd_u6570, function(_u9519_u8bef) 39if (xpcall(_u51fd_u6570, function(_u9519_u8bef)
31 return _u6253_u5370(_u9519_u8bef) 40 return _u6253_u5370(_u9519_u8bef)
32end, 1)) then 41end, 1)) then
@@ -55,7 +64,7 @@ do
55 end 64 end
56end 65end
57do 66do
58pcall(_u51fd_u6570, 1, 2, 3) 67 pcall(_u51fd_u6570, 1, 2, 3)
59pcall(_u51fd_u6570, 1, 2, 3) 68 pcall(_u51fd_u6570, 1, 2, 3)
60end 69end
61return nil 70return nil