JS: more coroutines 1.3 API related fixes
This commit is contained in:
committed by
Ilya Gorbunov
parent
8975a6e17e
commit
9af8fad43f
+4
-4
@@ -1,11 +1,11 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// EXPECTED_REACHABLE_NODES: 1172
|
||||
// EXPECTED_REACHABLE_NODES: 1302
|
||||
// FILE: a.kt
|
||||
// WITH_RUNTIME
|
||||
import kotlin.coroutines.*
|
||||
import kotlin.coroutines.intrinsics.*
|
||||
|
||||
suspend fun suspendThere(v: String): String = suspendCoroutineOrReturn { x ->
|
||||
suspend fun suspendThere(v: String): String = suspendCoroutineUninterceptedOrReturn { x ->
|
||||
x.resume(v)
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
@@ -14,8 +14,8 @@ suspend fun suspendHere(): String = suspendThere("O") + suspendThere("K")
|
||||
|
||||
// FILE: b.kt
|
||||
// RECOMPILE
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
import kotlin.coroutines.*
|
||||
import kotlin.coroutines.intrinsics.*
|
||||
|
||||
fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(object : Continuation<Unit> {
|
||||
|
||||
Reference in New Issue
Block a user