JS: enable translation of primitive arrays to TypedArray's by default (KT-17137)
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user