Hello,
I am trying to use in Android's WebView a project using Kotlin/JS.
I am getting error
method can't be invoked on a non-injected object
Looking on Google, I found this:
https://bugs.chromium.org/p/chromium/issues/detail?id=514628
So I looked into the code generated, and indeed, we are not doing what they recommend. The code generated gives:
var tmp0_safe_receiver = Native.adOver;
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver();
For
external object Native {
val adOver: (() -> Unit)?
}
Native.adOver?.invoke()
According to the report, we should generate:
var tmp0_safe_receiver = Native.adOver.bind(Native);
Has it been reported yet? Is there a workaround (other than just use
js("Native.adOver?.()")
)