提交 f381f1e6 编写于 作者: A Alexey Tsvetkov

Revert default value for "main" parameter for Gradle JS plugin to "call"

     #KT-14724 fixed
上级 ab0af43a
......@@ -49,7 +49,7 @@ open class DefaultValues(val defaultValue: String, val possibleValues: List<Stri
)
object JsMain : DefaultValues(
"\"" + NO_CALL + "\"",
"\"" + CALL + "\"",
listOf("\"" + CALL + "\"", "\"" + NO_CALL + "\"")
)
}
......@@ -13,7 +13,7 @@ interface KotlinJsOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommonOptions
/**
* Whether a main function should be called
* Possible values: "call", "noCall"
* Default value: "noCall"
* Default value: "call"
*/
var main: kotlin.String
......
......@@ -31,7 +31,7 @@ internal abstract class KotlinJsOptionsBase : org.jetbrains.kotlin.gradle.dsl.Ko
private var mainField: kotlin.String? = null
override var main: kotlin.String
get() = mainField ?: "noCall"
get() = mainField ?: "call"
set(value) { mainField = value }
private var metaInfoField: kotlin.Boolean? = null
......@@ -86,7 +86,7 @@ internal fun org.jetbrains.kotlin.cli.common.arguments.K2JSCompilerArguments.fil
suppressWarnings = false
verbose = false
kjsm = true
main = "noCall"
main = "call"
metaInfo = true
moduleKind = "plain"
noStdlib = true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册