[K/JS] Compile Kotlin coroutines as JS generator ^KT-63038 Fixed
This commit is contained in:
+1
@@ -67,6 +67,7 @@ fun copyK2JSCompilerArguments(from: K2JSCompilerArguments, to: K2JSCompilerArgum
|
||||
to.target = from.target
|
||||
to.typedArrays = from.typedArrays
|
||||
to.useEsClasses = from.useEsClasses
|
||||
to.useEsGenerators = from.useEsGenerators
|
||||
to.wasm = from.wasm
|
||||
to.wasmDebug = from.wasmDebug
|
||||
to.wasmEnableArrayRangeChecks = from.wasmEnableArrayRangeChecks
|
||||
|
||||
+10
@@ -504,6 +504,16 @@ In combination with '-meta-info', this generates both IR and pre-IR versions of
|
||||
field = value
|
||||
}
|
||||
|
||||
@Argument(
|
||||
value = "-Xes-generators",
|
||||
description = "Enable ES2015 generator functions usage inside the compiled code"
|
||||
)
|
||||
var useEsGenerators = false
|
||||
set(value) {
|
||||
checkFrozen()
|
||||
field = value
|
||||
}
|
||||
|
||||
@GradleOption(
|
||||
value = DefaultValue.BOOLEAN_TRUE_DEFAULT,
|
||||
gradleInputType = GradleInputTypes.INPUT,
|
||||
|
||||
Reference in New Issue
Block a user