Files
ladybird/Tests/LibJS/Runtime/for-loop-per-iteration-env-bug.js
2026-01-22 07:46:48 -05:00

13 lines
224 B
JavaScript

test("check that codegen doesn't crash", () => {
function func(x) {
expect(x()).toBe(0);
}
function go() {
for (let i = 0; ; ) {
func(() => i);
break;
}
}
});