Remove state from parts of multifile classes

Split COROUTINE_SUSPENDED marker to expect and actual because Kotlin/JS backend
expects it to be property without getter.

Update EXPECTED_REACHABLE_NODES in JS test data.

#KT-24986 Fixed
This commit is contained in:
Ilya Gorbunov
2018-06-19 19:04:25 +03:00
parent cffe7fb23b
commit 6d027bbbfc
5 changed files with 44 additions and 10 deletions
@@ -32,3 +32,13 @@ public actual fun <R, T> (suspend R.() -> T).createCoroutineUnchecked(
public actual fun <T> (suspend () -> T).createCoroutineUnchecked(
completion: Continuation<T>
): Continuation<Unit> = this.asDynamic()(completion, true).facade
/**
* This value is used as a return value of [suspendCoroutineOrReturn] `block` argument to state that
* the execution was suspended and will not return any result immediately.
*/
@SinceKotlin("1.1")
public actual val COROUTINE_SUSPENDED: Any = CoroutineSuspendedMarker
private object CoroutineSuspendedMarker