[JS IR] Support object declaration export
Fixes KT-39117 and KT-39367
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1290
|
||||
|
||||
// TODO: Support JsExport on object declarations: KT-39117
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
@JsExport
|
||||
object A {
|
||||
@JsName("js_method") fun f() = "method"
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1291
|
||||
|
||||
// TODO: Support JsExport on object declarations: KT-39117
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
@JsExport
|
||||
object A {
|
||||
@JsName("js_f") fun f(x: Int) = "f($x)"
|
||||
|
||||
Reference in New Issue
Block a user