diff options
Diffstat (limited to 'core/jsTest/src/kotlinx/serialization/test/CurrentPlatform.kt')
-rw-r--r-- | core/jsTest/src/kotlinx/serialization/test/CurrentPlatform.kt | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/jsTest/src/kotlinx/serialization/test/CurrentPlatform.kt b/core/jsTest/src/kotlinx/serialization/test/CurrentPlatform.kt index b87276e8..23627d17 100644 --- a/core/jsTest/src/kotlinx/serialization/test/CurrentPlatform.kt +++ b/core/jsTest/src/kotlinx/serialization/test/CurrentPlatform.kt @@ -4,9 +4,4 @@ package kotlinx.serialization.test -public actual val currentPlatform: Platform = if (isLegacyBackend()) Platform.JS_LEGACY else Platform.JS_IR - -// from https://github.com/JetBrains/kotlin/blob/569187a7516e2e5ab217158a3170d4beb0c5cb5a/js/js.translator/testData/_commonFiles/testUtils.kt#L3 -private fun isLegacyBackend(): Boolean = - // Using eval to prevent DCE from thinking that following code depends on Kotlin module. - eval("(typeof Kotlin != \"undefined\" && typeof Kotlin.kotlin != \"undefined\")").unsafeCast<Boolean>() +public actual val currentPlatform: Platform = Platform.JS |