Deprecate js Math.random and provide replacement with Random.nextDouble

#KT-23564 Fixed
This commit is contained in:
Ilya Gorbunov
2018-07-18 17:14:38 +03:00
parent 402f8880a9
commit db7f4bb402
5 changed files with 3 additions and 9 deletions
@@ -12,6 +12,7 @@ package kotlin.js
public external object Math {
@Deprecated("Use kotlin.math.PI instead.", ReplaceWith("PI", "kotlin.math.PI"))
public val PI: Double
@Deprecated("Use Random.nextDouble instead", ReplaceWith("kotlin.random.Random.nextDouble()", "kotlin.random.Random"))
public fun random(): Double
@Deprecated("Use kotlin.math.abs instead.", ReplaceWith("abs(value)", "kotlin.math.abs"))
public fun abs(value: Double): Double