Is this supposed to be used on JVM, or only in JS?...
# server
m
Is this supposed to be used on JVM, or only in JS? (The docs are a bit confusing.) https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-promise/
r
It's in kotlin.js and the first line of https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/ is
Functions and other APIs specific to the JavaScript platform.
So I'd assume it's js only?
s
😄 nice, the URI has
jvm
and
js
in it
☝️ 1
r
The entire stdlib seems to be under jvm - presumably for historic reasons?
m
I also think it is JS only, but the URL is confusing indeed.
r
I think the important bit is the orange dot - if you toggle off the orange JS at the top everything disappears.
👆 1
n
Did you see the yellow dots in the documentation? A yellow dot beside a part of the API means it is available for Kotlin JS. Filters are available at the top of the web page to toggle Kotlin development platforms (Common, JVM, JS, Native; WASM isn't available yet).
d
image.png
👍 1