diff --git a/js/js.config/src/org/jetbrains/kotlin/platform/js/JsPlatform.kt b/js/js.config/src/org/jetbrains/kotlin/platform/js/JsPlatform.kt index 221a7c4a74e..28d46cedf6a 100644 --- a/js/js.config/src/org/jetbrains/kotlin/platform/js/JsPlatform.kt +++ b/js/js.config/src/org/jetbrains/kotlin/platform/js/JsPlatform.kt @@ -7,6 +7,7 @@ package org.jetbrains.kotlin.platform.js import org.jetbrains.kotlin.platform.JsPlatform import org.jetbrains.kotlin.platform.TargetPlatform +import org.jetbrains.kotlin.platform.isJs as _isJs @Suppress("DEPRECATION_ERROR") object JsPlatforms { @@ -28,3 +29,9 @@ object JsPlatforms { val allJsPlatforms: List = listOf(defaultJsPlatform) } + +@Deprecated( + "For binary compatibility, please use org.jetbrains.kotlin.platform.isJs", + ReplaceWith("this.isJs()", "org.jetbrains.kotlin.platform.isJs") +) +fun TargetPlatform?.isJs(): Boolean = _isJs()