From d58c8c68d55ee73bdf4ee73cfb5fa5447fc524a4 Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Thu, 20 Jun 2019 15:33:47 +0300 Subject: [PATCH] Fix replacement for deprecated Math.pow #KT-32083 --- libraries/stdlib/js/src/kotlin/js.math.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/stdlib/js/src/kotlin/js.math.kt b/libraries/stdlib/js/src/kotlin/js.math.kt index 4176cdf5f57..f2031dd7dd6 100644 --- a/libraries/stdlib/js/src/kotlin/js.math.kt +++ b/libraries/stdlib/js/src/kotlin/js.math.kt @@ -48,7 +48,7 @@ public external object Math { public fun tan(value: Double): Double @Deprecated("Use kotlin.math.ln instead.", ReplaceWith("ln(value)", "kotlin.math.ln"), level = DeprecationLevel.ERROR) public fun log(value: Double): Double - @Deprecated("Use kotlin.math.pow instead.", ReplaceWith("pow(base, exp)", "kotlin.math.pow"), level = DeprecationLevel.ERROR) + @Deprecated("Use kotlin.math.pow instead.", ReplaceWith("base.pow(exp)", "kotlin.math.pow"), level = DeprecationLevel.ERROR) public fun pow(base: Double, exp: Double): Double @Deprecated("Use kotlin.math.round instead.", ReplaceWith("round(value)", "kotlin.math.round"), level = DeprecationLevel.ERROR) public fun round(value: Number): Int