aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/unicode/try_catch.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/outputs/unicode/try_catch.lua')
-rw-r--r--spec/outputs/unicode/try_catch.lua58
1 files changed, 40 insertions, 18 deletions
diff --git a/spec/outputs/unicode/try_catch.lua b/spec/outputs/unicode/try_catch.lua
index 7d95f9b..22f29f9 100644
--- a/spec/outputs/unicode/try_catch.lua
+++ b/spec/outputs/unicode/try_catch.lua
@@ -1,18 +1,26 @@
1xpcall(_u51fd_u6570, function(_u9519_u8bef) 1xpcall(function()
2 return _u51fd_u6570(1, 2, 3)
3end, function(_u9519_u8bef)
2 return _u6253_u5370(_u9519_u8bef) 4 return _u6253_u5370(_u9519_u8bef)
3end, 1, 2, 3) 5end)
4xpcall(_u51fd_u6570, function(_u9519_u8bef) 6xpcall(function()
7 return _u51fd_u6570(1, 2, 3)
8end, function(_u9519_u8bef)
5 return _u6253_u5370(_u9519_u8bef) 9 return _u6253_u5370(_u9519_u8bef)
6end, 1, 2, 3) 10end)
7pcall(function() 11pcall(function()
8 _u6253_u5370("正在try") 12 _u6253_u5370("正在try")
9 return _u51fd_u6570(1, 2, 3) 13 return _u51fd_u6570(1, 2, 3)
10end) 14end)
11do 15do
12 local _u6210_u529f, _u7ed3_u679c = xpcall(_u51fd_u6570, function(_u9519_u8bef) 16 local _u6210_u529f, _u7ed3_u679c = xpcall(function()
17 return _u51fd_u6570(1, 2, 3)
18 end, function(_u9519_u8bef)
13 return _u6253_u5370(_u9519_u8bef) 19 return _u6253_u5370(_u9519_u8bef)
14 end, 1, 2, 3) 20 end)
15 _u6210_u529f, _u7ed3_u679c = pcall(_u51fd_u6570, 1, 2, 3) 21 _u6210_u529f, _u7ed3_u679c = pcall(function()
22 return _u51fd_u6570(1, 2, 3)
23 end)
16end 24end
17pcall(function() 25pcall(function()
18 return _u8868["函数"] 26 return _u8868["函数"]
@@ -36,35 +44,49 @@ end)
36pcall(function() 44pcall(function()
37 return _u8868["函数"](1) 45 return _u8868["函数"](1)
38end) 46end)
39if (xpcall(_u51fd_u6570, function(_u9519_u8bef) 47if (xpcall(function()
48 return _u51fd_u6570(1)
49end, function(_u9519_u8bef)
40 return _u6253_u5370(_u9519_u8bef) 50 return _u6253_u5370(_u9519_u8bef)
41end, 1)) then 51end)) then
42 _u6253_u5370("好的") 52 _u6253_u5370("好的")
43end 53end
44if xpcall((_u51fd_u6570), function(_u9519_u8bef) 54if xpcall(function()
55 return _u51fd_u6570(1)
56end, function(_u9519_u8bef)
45 return _u6253_u5370(_u9519_u8bef) 57 return _u6253_u5370(_u9519_u8bef)
46end, 1) then 58end) then
47 _u6253_u5370("好的") 59 _u6253_u5370("好的")
48end 60end
49do 61do
50 do 62 do
51 local _u6210_u529f, _u7ed3_u679c = pcall(_u51fd_u6570, "abc", 123) 63 local _u6210_u529f, _u7ed3_u679c = pcall(function()
64 return _u51fd_u6570("abc", 123)
65 end)
52 if _u6210_u529f then 66 if _u6210_u529f then
53 _u6253_u5370(_u7ed3_u679c) 67 _u6253_u5370(_u7ed3_u679c)
54 end 68 end
55 end 69 end
56 local _u6210_u529f, _u7ed3_u679c = xpcall(_u51fd_u6570, function(_u9519_u8bef) 70 local _u6210_u529f, _u7ed3_u679c = xpcall(function()
71 return _u51fd_u6570("abc", 123)
72 end, function(_u9519_u8bef)
57 return _u6253_u5370(_u9519_u8bef) 73 return _u6253_u5370(_u9519_u8bef)
58 end, "abc", 123) 74 end)
59 _u6210_u529f, _u7ed3_u679c = xpcall(_u51fd_u6570, function(_u9519_u8bef) 75 _u6210_u529f, _u7ed3_u679c = xpcall(function()
76 return _u51fd_u6570("abc", 123)
77 end, function(_u9519_u8bef)
60 return _u6253_u5370(_u9519_u8bef) 78 return _u6253_u5370(_u9519_u8bef)
61 end, "abc", 123) 79 end)
62 if _u6210_u529f then 80 if _u6210_u529f then
63 _u6253_u5370(_u7ed3_u679c) 81 _u6253_u5370(_u7ed3_u679c)
64 end 82 end
65end 83end
66do 84do
67 pcall(_u51fd_u6570, 1, 2, 3) 85 pcall(function()
68 pcall(_u51fd_u6570, 1, 2, 3) 86 return _u51fd_u6570(1, 2, 3)
87 end)
88 pcall(function()
89 return _u51fd_u6570(1, 2, 3)
90 end)
69end 91end
70return nil 92return nil