Skip to content

Commit 40686e8

Browse files
committed
remove the limit for analyzing the literal table
resolve #3116
1 parent 7be92d2 commit 40686e8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
5+
* `CHG` remove the limit for analyzing the literal table
56

67
## 3.13.8
78
`2025-3-12`

script/vm/compiler.lua

+1-4
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,7 @@ local searchFieldSwitch = util.switch()
178178
: case 'table'
179179
: call(function (_suri, source, key, pushResult)
180180
local hasFiled = false
181-
for i, field in ipairs(source) do
182-
if i > 100 then
183-
break
184-
end
181+
for _, field in ipairs(source) do
185182
if field.type == 'tablefield'
186183
or field.type == 'tableindex' then
187184
local fieldKey = guide.getKeyName(field)

0 commit comments

Comments
 (0)