I've noticed that the `js(...)` intrinsic only su...
# javascript
c
I've noticed that the
js(...)
intrinsic only supports ES5 syntax. The version of GWT used by the Kotlin/JS compiler also predates the release of the ES6 standard. I couldn't find any official documentation describing the exact behavior of the intrinsic, but is enforcing ES5 kind of a spec of Kotlin/JS?
a
Hello @Chanjung Kim Yes, now it's supporting only ES5, and we're working on fixing it. To track the updates regarding this issue, you can subscribe to this issue: https://youtrack.jetbrains.com/issue/KT-21626
👍 1
c
Thanks! I should've searched for the
js()
function itself, I only tried
ES5
and
ES6
😅
t
Also functions have native factories - you can use them as alternative. Example
c
@turansky Thanks! Seems useful to me 😄
😉 1