[JS IR] Support per-file mode and ES modules
This commit is contained in:
+4
-1
@@ -3,7 +3,10 @@
|
||||
// PROPERTY_LAZY_INITIALIZATION
|
||||
|
||||
// FILE: A.kt
|
||||
var result: String? = null
|
||||
|
||||
val a = "a".let {
|
||||
result = "OK"
|
||||
it + "a"
|
||||
}
|
||||
|
||||
@@ -13,5 +16,5 @@ fun foo() =
|
||||
// FILE: main.kt
|
||||
fun box(): String {
|
||||
val foo = foo()
|
||||
return if (js("typeof a") == "string" && js("a") == "aa") "OK" else "fail"
|
||||
return result!!
|
||||
}
|
||||
Reference in New Issue
Block a user