Fix generation of JS source maps for suspend functions
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
suspend fun foo(value: Int): Int = suspendCoroutineOrReturn { c ->
|
||||
c.resume(value)
|
||||
COROUTINE_SUSPENDED
|
||||
}
|
||||
|
||||
suspend fun bar(): Unit {
|
||||
println("!")
|
||||
val a = foo(2)
|
||||
println("!")
|
||||
val b = foo(3)
|
||||
println(a + b)
|
||||
}
|
||||
|
||||
// LINES: 4 5 6 * 9 9 9 9 9 9 9 9 * 10 11 11 11 11 11 * 11 12 13 13 13 13 13 13 14
|
||||
Reference in New Issue
Block a user