JS: enable translation of primitive arrays to TypedArray's by default (KT-17137)

This commit is contained in:
Anton Bannykh
2017-08-23 16:22:45 +03:00
parent cc8fbf6078
commit 22dc36a596
11 changed files with 87 additions and 32 deletions
@@ -70,7 +70,7 @@ interface KotlinJsOptions : org.jetbrains.kotlin.gradle.dsl.KotlinCommonOptions
/**
* Translate primitive arrays to JS typed arrays
* Default value: false
* Default value: true
*/
var typedArrays: kotlin.Boolean
}
@@ -76,7 +76,7 @@ internal abstract class KotlinJsOptionsBase : org.jetbrains.kotlin.gradle.dsl.Ko
private var typedArraysField: kotlin.Boolean? = null
override var typedArrays: kotlin.Boolean
get() = typedArraysField ?: false
get() = typedArraysField ?: true
set(value) { typedArraysField = value }
internal open fun updateArguments(args: org.jetbrains.kotlin.cli.common.arguments.K2JSCompilerArguments) {
@@ -113,5 +113,5 @@ internal fun org.jetbrains.kotlin.cli.common.arguments.K2JSCompilerArguments.fil
sourceMapEmbedSources = "inlining"
sourceMapPrefix = null
target = "v5"
typedArrays = false
typedArrays = true
}