Kampfkarren/full-moon

Stack overflow in debug mode

Ketasaja opened this issue · 0 comments

Overflows on 1.0.0-rc.5 and 0.19.0 with stacker, with no errors in release mode on either.

function f()
	local x = true

	do
		if x then
			x = false
		end
	end
end

And the same for:

function f()
	for k, v in t do
		if v then
			
		end
	end
end

If it's helpful context, this variant doesn't overflow on 1.0.0-rc.5, or 0.19.0 with stacker, but does overflow on 0.19.0 without stacker.

function f()
	local x = {}

	if x then
		x = {}
	end
end

Full code:

use full_moon;

fn main() {
    full_moon::parse("function f()
	local x = true

	do
		if x then
			x = false
		end
	end
end");
}