JS: don't remove debugger statement from coroutine

See KT-19826
This commit is contained in:
Alexey Andreev
2017-11-13 15:59:34 +03:00
parent 21de76f88d
commit b93acb07d2
4 changed files with 27 additions and 0 deletions
@@ -0,0 +1,14 @@
// EXPECTED_REACHABLE_NODES: 1152
// CHECK_DEBUGGER_COUNT: function=doResume count=1
fun foo(f: suspend () -> Unit) {
}
fun box(): String {
foo {
println("aaa")
js("debugger;")
println("bbb")
}
return "OK"
}