https://kotlinlang.org logo
#webassembly
Title
# webassembly
r

Robert Jaros

10/04/2023, 3:22 PM
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

bashor

10/04/2023, 7:13 PM
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

Robert Jaros

10/04/2023, 7:40 PM
Why would it?
b

bashor

10/04/2023, 7:44 PM
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

Robert Jaros

10/04/2023, 7:45 PM
Oh, I see. I was thinking about source compatibility, not binary compatibility.