[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
+4 -4
View File
@@ -10,10 +10,10 @@ object A {
@JsName("js_q") val q: String get() = "q"
}
fun test() = js("""
var a = JS_TESTS.A;
return a.js_f(23) + ";" + a.js_g(42) + ";" + a.js_p + ";" + a.js_q;
""")
fun test(): dynamic {
var a = A.asDynamic()
return a.js_f(23) + ";" + a.js_g(42) + ";" + a.js_p + ";" + a.js_q
}
fun box(): String {
val result = test()