diff options
Diffstat (limited to 'spec/outputs/unicode')
| -rw-r--r-- | spec/outputs/unicode/try_catch.lua | 58 |
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 @@ | |||
| 1 | xpcall(_u51fd_u6570, function(_u9519_u8bef) | 1 | xpcall(function() |
| 2 | return _u51fd_u6570(1, 2, 3) | ||
| 3 | end, function(_u9519_u8bef) | ||
| 2 | return _u6253_u5370(_u9519_u8bef) | 4 | return _u6253_u5370(_u9519_u8bef) |
| 3 | end, 1, 2, 3) | 5 | end) |
| 4 | xpcall(_u51fd_u6570, function(_u9519_u8bef) | 6 | xpcall(function() |
| 7 | return _u51fd_u6570(1, 2, 3) | ||
| 8 | end, function(_u9519_u8bef) | ||
| 5 | return _u6253_u5370(_u9519_u8bef) | 9 | return _u6253_u5370(_u9519_u8bef) |
| 6 | end, 1, 2, 3) | 10 | end) |
| 7 | pcall(function() | 11 | pcall(function() |
| 8 | _u6253_u5370("正在try") | 12 | _u6253_u5370("正在try") |
| 9 | return _u51fd_u6570(1, 2, 3) | 13 | return _u51fd_u6570(1, 2, 3) |
| 10 | end) | 14 | end) |
| 11 | do | 15 | do |
| 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) | ||
| 16 | end | 24 | end |
| 17 | pcall(function() | 25 | pcall(function() |
| 18 | return _u8868["函数"] | 26 | return _u8868["函数"] |
| @@ -36,35 +44,49 @@ end) | |||
| 36 | pcall(function() | 44 | pcall(function() |
| 37 | return _u8868["函数"](1) | 45 | return _u8868["函数"](1) |
| 38 | end) | 46 | end) |
| 39 | if (xpcall(_u51fd_u6570, function(_u9519_u8bef) | 47 | if (xpcall(function() |
| 48 | return _u51fd_u6570(1) | ||
| 49 | end, function(_u9519_u8bef) | ||
| 40 | return _u6253_u5370(_u9519_u8bef) | 50 | return _u6253_u5370(_u9519_u8bef) |
| 41 | end, 1)) then | 51 | end)) then |
| 42 | _u6253_u5370("好的") | 52 | _u6253_u5370("好的") |
| 43 | end | 53 | end |
| 44 | if xpcall((_u51fd_u6570), function(_u9519_u8bef) | 54 | if xpcall(function() |
| 55 | return _u51fd_u6570(1) | ||
| 56 | end, function(_u9519_u8bef) | ||
| 45 | return _u6253_u5370(_u9519_u8bef) | 57 | return _u6253_u5370(_u9519_u8bef) |
| 46 | end, 1) then | 58 | end) then |
| 47 | _u6253_u5370("好的") | 59 | _u6253_u5370("好的") |
| 48 | end | 60 | end |
| 49 | do | 61 | do |
| 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 |
| 65 | end | 83 | end |
| 66 | do | 84 | do |
| 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) | ||
| 69 | end | 91 | end |
| 70 | return nil | 92 | return nil |
