When running tests with IR backend I've noticed my...
# javascript
r
When running tests with IR backend I've noticed my
jQuery(v)
is translated to
jQuery.invoke(v)
in generated JS file. My
jQuery
is defined as
external val
. Of course half of my tests are failing with IR (all working fine with legacy backend). Is it a bug?
With legacy backend it's translated to
$module$jquery(v)
It looks a bit similar to this: https://youtrack.jetbrains.com/issue/KT-40002
It could have something to do with such deprecated declarations I have:
Copy code
@nativeInvoke
    operator fun invoke(`object`: Any?): JQuery
I'll try to remove these deprecated declarations and check again.
Replacing deprecated annotations with inline operator functions fixed the problem with IR backend.