diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-06-04 16:07:06 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-06-04 16:07:06 +0800 |
| commit | 0e72454a11f65d9ac800dedb698ddfcc15933785 (patch) | |
| tree | 6cded6335c22c4dd204f7d3bc66efa0f76a41ef0 /spec/outputs/destructure.lua | |
| parent | 548ab1d9ff5b831050f14f1355a3314a41163ad6 (diff) | |
| download | yuescript-0e72454a11f65d9ac800dedb698ddfcc15933785.tar.gz yuescript-0e72454a11f65d9ac800dedb698ddfcc15933785.tar.bz2 yuescript-0e72454a11f65d9ac800dedb698ddfcc15933785.zip | |
Added more reversed index support for slice. [skip CI]
Diffstat (limited to 'spec/outputs/destructure.lua')
| -rw-r--r-- | spec/outputs/destructure.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/outputs/destructure.lua b/spec/outputs/destructure.lua index 216d921..ba216b5 100644 --- a/spec/outputs/destructure.lua +++ b/spec/outputs/destructure.lua | |||
| @@ -631,8 +631,8 @@ do | |||
| 631 | local vipStart, regulars, vipEnd = clients[1], (function() | 631 | local vipStart, regulars, vipEnd = clients[1], (function() |
| 632 | local _accum_0 = { } | 632 | local _accum_0 = { } |
| 633 | local _len_0 = 1 | 633 | local _len_0 = 1 |
| 634 | local _max_0 = -2 | 634 | local _max_0 = #clients + -2 + 1 |
| 635 | for _index_0 = 2, _max_0 < 0 and #clients + _max_0 + 1 or _max_0 do | 635 | for _index_0 = 2, _max_0 do |
| 636 | local _item_0 = clients[_index_0] | 636 | local _item_0 = clients[_index_0] |
| 637 | _accum_0[_len_0] = _item_0 | 637 | _accum_0[_len_0] = _item_0 |
| 638 | _len_0 = _len_0 + 1 | 638 | _len_0 = _len_0 + 1 |
| @@ -688,8 +688,8 @@ do | |||
| 688 | local _accum_0 = { } | 688 | local _accum_0 = { } |
| 689 | local _len_0 = 1 | 689 | local _len_0 = 1 |
| 690 | local _list_0 = tb | 690 | local _list_0 = tb |
| 691 | local _max_0 = -2 | 691 | local _max_0 = #_list_0 + -2 + 1 |
| 692 | for _index_0 = 2, _max_0 < 0 and #_list_0 + _max_0 + 1 or _max_0 do | 692 | for _index_0 = 2, _max_0 do |
| 693 | local _item_0 = _list_0[_index_0] | 693 | local _item_0 = _list_0[_index_0] |
| 694 | _accum_0[_len_0] = _item_0 | 694 | _accum_0[_len_0] = _item_0 |
| 695 | _len_0 = _len_0 + 1 | 695 | _len_0 = _len_0 + 1 |
| @@ -702,8 +702,8 @@ do | |||
| 702 | a, abc, b, def, sub, d, e = _obj_0[1], _obj_0.abc, _obj_0[2], _obj_0.def, (function() | 702 | a, abc, b, def, sub, d, e = _obj_0[1], _obj_0.abc, _obj_0[2], _obj_0.def, (function() |
| 703 | local _accum_0 = { } | 703 | local _accum_0 = { } |
| 704 | local _len_0 = 1 | 704 | local _len_0 = 1 |
| 705 | local _max_0 = -3 | 705 | local _max_0 = #_obj_0 + -3 + 1 |
| 706 | for _index_0 = 3, _max_0 < 0 and #_obj_0 + _max_0 + 1 or _max_0 do | 706 | for _index_0 = 3, _max_0 do |
| 707 | local _item_0 = _obj_0[_index_0] | 707 | local _item_0 = _obj_0[_index_0] |
| 708 | _accum_0[_len_0] = _item_0 | 708 | _accum_0[_len_0] = _item_0 |
| 709 | _len_0 = _len_0 + 1 | 709 | _len_0 = _len_0 + 1 |
