From 9af8fad43ff85abd1ceab2fd1b76d977deec5878 Mon Sep 17 00:00:00 2001 From: Anton Bannykh Date: Tue, 28 Aug 2018 19:10:47 +0300 Subject: [PATCH] JS: more coroutines 1.3 API related fixes --- js/js.translator/testData/box/incremental/coroutines.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/js.translator/testData/box/incremental/coroutines.kt b/js/js.translator/testData/box/incremental/coroutines.kt index 05f18ee3d66..c8f719e1725 100644 --- a/js/js.translator/testData/box/incremental/coroutines.kt +++ b/js/js.translator/testData/box/incremental/coroutines.kt @@ -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 {