[K/JS] Compile Kotlin coroutines as JS generator ^KT-63038 Fixed
This commit is contained in:
@@ -227,3 +227,6 @@ internal fun jsContextfulRef(context: dynamic, fn: dynamic): dynamic
|
||||
|
||||
@JsIntrinsic
|
||||
internal fun jsIsEs6(): Boolean
|
||||
|
||||
@JsIntrinsic
|
||||
internal fun <T> jsYield(suspendFunction: () -> T): T
|
||||
|
||||
@@ -51,3 +51,9 @@ internal annotation class JsFun(val code: String)
|
||||
*/
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
internal annotation class JsImplicitExport
|
||||
|
||||
/**
|
||||
* The annotation is needed for annotating function declarations that should be compiled as ES6 generators
|
||||
*/
|
||||
@Target(AnnotationTarget.FUNCTION)
|
||||
internal annotation class JsGenerator
|
||||
|
||||
Reference in New Issue
Block a user