I think I found a miscompilation/bad codegen of js. Is there a standard way for me to debug this? Report this issue in the compiler? I tried to make a small repro project but I can't reproduce it outside my own case which is massive and closed source. Any tips?
Mendess
05/19/2022, 9:22 PM
The case btw is
Copy code
// this class is implemented on the js side
@JsExport
abstract class Adapter {
@JsName("method")
abstract fun method(params...., callback: (Foo) -> Unit)
}
internal class InternalService(private val adapter: Adapter) {
suspend fun method(params...): Foo {
suspendCoroutine { cont -> adapter.method(params) { cont.resume(it) } }
}
}