Are there any plans of making JS interop more comp...
# webassembly
r
Are there any plans of making JS interop more compatible between Kotlin/JS and Kotlin/Wasm ? It shouldn't be hard or backward incompatible to introduce
JsAny
and add it to all built-in external declarations?
Writing code which could be compiled to both JS or Wasm would be a lot easier.
b
No specific plan for now, but probably we’ll continue tuning interop on Kotlin/Wasm side
It shouldn’t be hard or backward incompatible to introduce
JsAny
and add it to all built-in external declarations?
Likely it will be a breaking change for Kotlin/JS libraries
r
Why would it?
b
Changing upperbound or types will change signature used for linking, so compiler will unable to link references from old klibs with a new library with Browser APIs
r
Oh, I see. I was thinking about source compatibility, not binary compatibility.