If I wanted to check if a given browser supported ...
# webassembly
a
If I wanted to check if a given browser supported running Kotlin/WASM files, would it suffice to check if it supports wasm GC? (i.e. using a feature detector like this one) Or should I run any other checks as well?
I noticed the play.kotlinlang.org does pretty much the same thing
s
Yes. Kotlin uses other post-1.0 wasm features, like exception handling, but in practice major browsers supported other features before GC.
a
Great, I figured as much, thanks for confirming!
j
Would it be possible to use a feature detector to create a website with Compose Canvas, that shows Compose Canvas Wasm/JS for browsers that support Wasm GC, and Compose Canvas JS for browsers that don’t support it?