[K/JS] Fix nameBindings for ES-modules after the ES-modules external declarations optimization

This commit is contained in:
Artem Kobzar
2023-10-20 14:04:39 +00:00
committed by Space Team
parent 72438f4969
commit 4a042dafef
15 changed files with 84 additions and 1 deletions
@@ -0,0 +1,9 @@
@OptIn(kotlin.ExperimentalStdlibApi::class)
@EagerInitialization
val initJsObject = js("""
globalThis.ObjectB = { getResult: function() { return "OK" } }
""")
fun box(stepId: Int): String {
return ObjectB.getResult()
}
@@ -0,0 +1,6 @@
STEP 0:
dependencies: lib1
added file: m.kt
STEP 1:
dependencies: lib1
updated imports: m.kt