[JS IR BE] Add JsExport annotations
This commit is contained in:
+4
-4
@@ -6,10 +6,10 @@ object A {
|
||||
@JsName("js_property") val f: String get() = "property"
|
||||
}
|
||||
|
||||
fun test() = js("""
|
||||
var a = JS_TESTS.A;
|
||||
return a.js_method() + ";" + a.js_property;
|
||||
""")
|
||||
fun test(): dynamic {
|
||||
val a = A.asDynamic()
|
||||
return a.js_method() + ";" + a.js_property
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val result = test()
|
||||
|
||||
Reference in New Issue
Block a user