Add iterator cancellation for bytecode for-in loops

This commit is contained in:
sergeych committed 2026-01-29 06:47:27 +03:00
1 parent 0e069382a2
commit e346e7e56e
9 files changed
+215 -40

No files matched your search

@@ -186,7 +186,6 @@ class ScriptTest {
assertEquals(0, ti.cancelCount)
}
@Ignore("Bytecode: unsupported or incorrect behavior")
@Test
fun testForLoopCancelsOnBreak() = runTest {
val scope = Script.newScope()
@@ -202,7 +201,6 @@ class ScriptTest {
assertEquals(1, ti.cancelCount)
}
@Ignore("Bytecode: unsupported or incorrect behavior")
@Test
fun testForLoopCancelsOnException() = runTest {
val scope = Script.newScope()
@@ -4567,7 +4565,6 @@ class ScriptTest {
}
@Ignore("Bytecode: unsupported or incorrect behavior")
@Test
fun testDestructuringAssignment() = runTest {
eval(