Control Duration init block assertions on JVM with -ea option

On other platforms enable them unconditionally
This commit is contained in:
Ilya Gorbunov
2021-09-23 12:56:20 +03:00
committed by Space
parent 21a9198fff
commit 7666377565
5 changed files with 15 additions and 6 deletions
@@ -7,6 +7,8 @@ package kotlin.time
import kotlin.native.internal.GCUnsafeCall
internal actual inline val durationAssertionsEnabled: Boolean get() = true
@GCUnsafeCall("Kotlin_DurationValue_formatToExactDecimals")
internal actual external fun formatToExactDecimals(value: Double, decimals: Int): String