diff options
Diffstat (limited to 'spec/outputs/unicode/try_catch.lua')
-rw-r--r-- | spec/outputs/unicode/try_catch.lua | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/spec/outputs/unicode/try_catch.lua b/spec/outputs/unicode/try_catch.lua new file mode 100644 index 0000000..fde63d6 --- /dev/null +++ b/spec/outputs/unicode/try_catch.lua | |||
@@ -0,0 +1,61 @@ | |||
1 | xpcall(_u51fd_u6570, function(_u9519_u8bef) | ||
2 | return _u6253_u5370(_u9519_u8bef) | ||
3 | end, 1, 2, 3) | ||
4 | xpcall(_u51fd_u6570, function(_u9519_u8bef) | ||
5 | return _u6253_u5370(_u9519_u8bef) | ||
6 | end, 1, 2, 3) | ||
7 | pcall(function() | ||
8 | _u6253_u5370("正在try") | ||
9 | return _u51fd_u6570(1, 2, 3) | ||
10 | end) | ||
11 | do | ||
12 | local _u6210_u529f, _u7ed3_u679c = xpcall(_u51fd_u6570, function(_u9519_u8bef) | ||
13 | return _u6253_u5370(_u9519_u8bef) | ||
14 | end, 1, 2, 3) | ||
15 | _u6210_u529f, _u7ed3_u679c = pcall(_u51fd_u6570, 1, 2, 3) | ||
16 | end | ||
17 | pcall(_u8868["函数"]) | ||
18 | pcall(_u8868["函数"]) | ||
19 | pcall(_u8868["函数"]) | ||
20 | pcall((_u8868["函数"])) | ||
21 | pcall(((function() | ||
22 | local _base_0 = _u8868 | ||
23 | local _fn_0 = _base_0["函数"] | ||
24 | return _fn_0 and function(...) | ||
25 | return _fn_0(_base_0, ...) | ||
26 | end | ||
27 | end)()), 1, 2, 3) | ||
28 | pcall(_u8868["函数"], 1) | ||
29 | pcall(_u8868["函数"], 1) | ||
30 | if (xpcall(_u51fd_u6570, function(_u9519_u8bef) | ||
31 | return _u6253_u5370(_u9519_u8bef) | ||
32 | end, 1)) then | ||
33 | _u6253_u5370("好的") | ||
34 | end | ||
35 | if xpcall((_u51fd_u6570), function(_u9519_u8bef) | ||
36 | return _u6253_u5370(_u9519_u8bef) | ||
37 | end, 1) then | ||
38 | _u6253_u5370("好的") | ||
39 | end | ||
40 | do | ||
41 | do | ||
42 | local _u6210_u529f, _u7ed3_u679c = pcall(_u51fd_u6570, "abc", 123) | ||
43 | if _u6210_u529f then | ||
44 | _u6253_u5370(_u7ed3_u679c) | ||
45 | end | ||
46 | end | ||
47 | local _u6210_u529f, _u7ed3_u679c = xpcall(_u51fd_u6570, function(_u9519_u8bef) | ||
48 | return _u6253_u5370(_u9519_u8bef) | ||
49 | end, "abc", 123) | ||
50 | _u6210_u529f, _u7ed3_u679c = xpcall(_u51fd_u6570, function(_u9519_u8bef) | ||
51 | return _u6253_u5370(_u9519_u8bef) | ||
52 | end, "abc", 123) | ||
53 | if _u6210_u529f then | ||
54 | _u6253_u5370(_u7ed3_u679c) | ||
55 | end | ||
56 | end | ||
57 | do | ||
58 | pcall(_u51fd_u6570, 1, 2, 3) | ||
59 | pcall(_u51fd_u6570, 1, 2, 3) | ||
60 | end | ||
61 | return nil | ||