quickjs-done/tests/bug741.js

20 lines
246 B
JavaScript
Raw Permalink Normal View History

2025-01-06 20:48:15 +00:00
import {assert} from "./assert.js"
while (1) label: break
var i = 0
while (i < 3) label: {
if (i > 0)
break
i++
}
assert(i, 1)
for (;;) label: break
for (i = 0; i < 3; i++) label: {
if (i > 0)
break
}
assert(i, 1)