Skip to content

Commit 0c3e354

Browse files
authored
Update compiler.lua
1 parent de98b5c commit 0c3e354

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

script/vm/compiler.lua

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -523,16 +523,7 @@ local function getReturnOfSetMetaTable(args)
523523
end)
524524
end
525525
--过滤nil
526-
local len = #node
527-
for i = len, 1, -1 do
528-
local n = node[i]
529-
if n.cate == 'type' then
530-
if n.name == 'nil' then
531-
table.remove(node, i)
532-
break
533-
end
534-
end
535-
end
526+
node:remove 'nil'
536527
return node
537528
end
538529

0 commit comments

Comments
 (0)