[JS IR] Support per-file mode and ES modules

This commit is contained in:
Svyatoslav Kuzmich
2021-02-23 15:44:06 +03:00
parent f479ac5c3a
commit 3f8dce4b53
140 changed files with 5136 additions and 609 deletions
@@ -5,6 +5,7 @@
// FILE: A.kt
val a1 = "a".let {
throw Error()
it + "a"
}
@@ -39,5 +40,5 @@ fun box(): String {
C.values()
C.valueOf("OK")
val baz = b
return if (js("typeof a1") == "undefined") "OK" else "fail"
return "OK"
}