JS: fix test by using release coroutines
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
import kotlin.coroutines.experimental.*
|
import kotlin.coroutines.*
|
||||||
import kotlin.coroutines.experimental.intrinsics.*
|
import kotlin.coroutines.intrinsics.*
|
||||||
|
|
||||||
suspend fun foo(value: Int): Int = suspendCoroutineUninterceptedOrReturn { c ->
|
suspend fun foo(value: Int): Int = suspendCoroutineUninterceptedOrReturn { c ->
|
||||||
c.resume(value)
|
c.resume(value)
|
||||||
@@ -14,4 +14,4 @@ suspend fun bar(): Unit {
|
|||||||
println(a + b)
|
println(a + b)
|
||||||
}
|
}
|
||||||
|
|
||||||
// LINES: 36 36 4 45 45 15 9 9 9 9 15 9 9 9 * 15 10 10 11 11 11 11 11 * 11 12 12 13 13 13 13 13 13 13 14 14
|
// LINES: 40 40 4 4 4 5 5 45 45 5 86 45 5 5 6 4 4 4 15 9 9 9 9 15 9 9 9 * 15 10 10 11 11 11 2 11 11 * 11 12 12 13 13 13 2 13 13 13 13 14 14
|
||||||
Reference in New Issue
Block a user