rce-incorporated / Fiu

Luau bytecode interpreter for Luau
MIT License
90 stars 14 forks source link

Stacked Generalized Iteration Error & No Loop using function iterators #11

Closed SnorlaxAssist closed 6 months ago

SnorlaxAssist commented 6 months ago

Stacked Generalized Iteration error.

local t = {1, 2, 3};
for i, v in t do
    for k, e in t do
        -- ...
    end
    -- next iteration, vm error.
end

No Looping using an iterator function.

local t = {
    "Hello", "World"
};
for i, v in ipairs(t) do
    -- no iteration
    print(i, v)
end