[JS IR BE] Add JsExport annotations

This commit is contained in:
Svyatoslav Kuzmich
2019-06-27 15:12:14 +03:00
parent 685597d20a
commit 69962cbf8c
22 changed files with 91 additions and 31 deletions
+3 -4
View File
@@ -8,10 +8,9 @@ class B : A() {
override fun f(x: Int) = "B.f($x)"
}
fun test() = js("""
var module = JS_TESTS;
return new (module.A)().js_f(23) + ";" + new (module.B)().js_f(42);
""")
fun test(): dynamic {
return A().asDynamic().js_f(23) + ";" + B().asDynamic().js_f(42)
}
fun box(): String {
val result = test()