mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-29 07:48:47 +00:00
If the current block has already been terminated, we should just skip creating a per-iteration environment.
12 lines
224 B
JavaScript
12 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;
|
|
}
|
|
}
|
|
});
|