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

Robert Jaros

09/24/2023, 3:02 PM
Anyone tried using Kotlin/Wasm (1.9.20-Beta) with Firefox Nightly 119? I've got an error:
wasm validation error: at offset 360: bad type
. The same code works fine in Chrome 117. I've turned on two wasm options for Firefox in
about:config
(https://kotlinlang.org/docs/wasm-get-started.html#troubleshooting).
e

ephemient

09/24/2023, 5:05 PM
https://youtrack.jetbrains.com/issue/KT-59720 the wasm opcodes have changed as the wasm-gc spec is being finalized, firefox isn't up to date
r

Robert Jaros

09/24/2023, 5:20 PM
The mozilla bug is fixed with the 119.0a1 milestone. This is also the version of my Firefox Nightly. Still it doesn't work.
It works with Kotlin-1.9.20-Beta2 :-)
Unfortunately I can't find Chrome 119 (dev) for my Fedora
e

ephemient

09/24/2023, 5:28 PM
oh it looks like the nightly did update
so yeah, you need Kotlin 1.9.20-Beta2 for the new opcodes to match (I thought that's what you mentioned originally, misread)
👍 1
2 Views