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

Arkadii Ivanov

12/08/2023, 5:28 PM
Some::class.qualifiedName
doesn't compile with message "Unsupported [This reflection API is not supported yet in JavaScript]". But it works and returns correct results in Kotlin Playground (Wasm with Kotlin 1.9.20). Wondering, what is the current state of
KClass#qualifiedName
in
jsWasm
?
s

Svyatoslav Kuzmich [JB]

12/08/2023, 5:39 PM
Could you try adding a compiler flag
-Xwasm-kclass-fqn
? I think it would do what you need, but can’t test it now
a

Arkadii Ivanov

12/08/2023, 6:35 PM
It works, thanks!
h

hikamaeng

12/11/2023, 2:40 AM
Is it still working in 1.9.21?
a

Arkadii Ivanov

12/11/2023, 7:51 AM
Yep, works for me.
2 Views