JS: support [suspend] fun main([args: Array<String>]) (KT-26628, KT-26572 fixed)

This commit is contained in:
Anton Bannykh
2018-09-10 19:33:04 +03:00
committed by Denis Zharkov
parent 7e9704e50d
commit ead9b31e03
10 changed files with 226 additions and 3 deletions
@@ -0,0 +1,14 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package kotlin.coroutines.js.internal
import kotlin.coroutines.Continuation
import kotlin.coroutines.EmptyCoroutineContext
@PublishedApi
internal val EmptyContinuation = Continuation<Any?>(EmptyCoroutineContext) { result ->
result.getOrThrow()
}