No need to limit variable declarations to 250

Only local variables, which use registers, need this low limit.
This commit is contained in:
Roberto Ierusalimschy
2025-06-18 16:45:55 -03:00
parent f711567448
commit 07b009c371
4 changed files with 38 additions and 11 deletions

View File

@@ -742,7 +742,7 @@ assert(c > 255 and string.find(b, "too many upvalues") and
-- local variables
s = "\nfunction foo ()\n local "
for j = 1,300 do
for j = 1,200 do
s = s.."a"..j..", "
end
s = s.."b\n"