Files
kotlin-fork/js/js.translator/testData/_commonFiles/testUtils.kt
T
2019-02-25 15:09:26 +03:00

7 lines
254 B
Kotlin
Vendored

package testUtils
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>()