Control Duration init block assertions on JVM with -ea option
On other platforms enable them unconditionally
This commit is contained in:
+2
@@ -8,6 +8,8 @@ package kotlin.time
|
||||
import kotlin.js.json
|
||||
import kotlin.math.*
|
||||
|
||||
internal actual inline val durationAssertionsEnabled: Boolean get() = true
|
||||
|
||||
internal actual fun formatToExactDecimals(value: Double, decimals: Int): String {
|
||||
val rounded = if (decimals == 0) {
|
||||
value
|
||||
Reference in New Issue
Block a user