[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
+4 -3
View File
@@ -1,6 +1,5 @@
// SKIP_MINIFICATION
@JsExport
val top = "TOP LEVEL"
fun box(): String {
@@ -10,8 +9,10 @@ fun box(): String {
assertEquals(5, eval("3 + 2"))
val PACKAGE = "JS_TESTS"
assertEquals(top, eval("$PACKAGE.top"))
if (testUtils.isLegacyBackend()) {
val PACKAGE = "JS_TESTS"
assertEquals(top, eval("$PACKAGE.top"))
}
return "OK"
}