[JS IR BE] Use Char boxing rules of current backend

This commit is contained in:
Svyatoslav Kuzmich
2019-02-14 14:39:04 +03:00
parent de020ed58a
commit 569187a751
12 changed files with 32 additions and 24 deletions
+6
View File
@@ -0,0 +1,6 @@
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>()