You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When minified, (select(n, ...)) becomes select(n,...).
This causes errors in some situations, such as below:
local t = {}
local function a(...)
print("Inserting:", (select(1, ...)))
table.insert(t, (select(1, ...))) -- properly inserts "hello" into t
print("Inserting:", select(1,...))
table.insert(t, select(1,...)) -- calls insert(t, "hello", "world") which fails
end
a("hello", "world")
Output:
Inserting: hello
Inserting: hello world
input:8: bad argument #2 to 'insert' (number expected, got string)
The text was updated successfully, but these errors were encountered:
When minified,
(select(n, ...))
becomesselect(n,...)
.This causes errors in some situations, such as below:
Output:
The text was updated successfully, but these errors were encountered: