Michael Lingelbach
eece0735fe
fix(lsp): avoid ipairs on non-sequential tables ( #15059 )
...
ipairs terminates on the first nil index when iterating over table keys:
for i,k in ipairs( {[1] = 'test', [3] = 'test'} ) do
print(i, k)
end
prints:
1 test
Instead, use pairs which continues iterating over the entire table:
for i,k in pairs( {[1] = 'test', [3] = 'test'} ) do
print(i, k)
end
prints:
1 test
3 test
2021-07-11 11:34:26 -07:00
..
2021-07-11 06:19:54 -07:00
2021-05-01 14:22:52 -04:00
2021-05-02 12:44:04 -04:00
2021-07-10 21:35:38 +02:00
2021-05-25 22:11:04 -04:00
2021-05-25 22:11:04 -04:00
2021-05-01 22:29:03 -04:00
2021-07-11 11:34:26 -07:00
2021-05-01 22:29:03 -04:00
2021-05-25 22:11:04 -04:00
2021-05-02 12:44:04 -04:00
2014-12-19 15:28:49 -05:00
2021-03-09 19:21:26 +01:00
2021-06-12 13:06:49 -04:00
2021-07-01 17:31:30 -04:00
2021-04-29 21:08:09 -04:00
2021-05-18 22:47:17 +02:00
2019-07-29 20:50:07 +02:00
2021-05-27 22:37:24 +02:00
2021-04-11 17:05:42 -04:00
2021-07-04 09:22:49 -04:00
2014-07-29 02:12:31 +00:00
2021-06-11 01:01:02 +06:00
2014-07-29 02:12:31 +00:00
2021-06-11 01:01:02 +06:00
2014-07-29 02:12:31 +00:00
2014-07-29 02:12:31 +00:00
2021-04-27 09:21:32 -04:00
2021-04-28 21:57:50 -04:00
2019-07-29 20:50:07 +02:00
2021-07-02 18:12:11 +02:00
2021-05-01 22:29:03 -04:00
2019-03-11 21:00:12 +01:00
2021-05-01 22:29:02 -04:00
2014-07-29 02:12:31 +00:00
2021-05-02 12:54:06 -04:00
2021-05-01 22:29:02 -04:00