Here’s a few more things I think are unnecessary b...
# javascript
j
Here’s a few more things I think are unnecessary but not eliminated:
STRING_CASE_INSENSITIVE_ORDER
output
UNDEFINED_RESULT
These are all defined as top-level vals. My best guess is that the dead code eliminator doesn’t know how to prune these. Is that deliberate? Any idea what a fix might look like?
r
Is this with the IR backend? If it is, I'd make an issue. If not, I'd try it, although the IR DCE can be a bit finicky, since it's still in alpha. Unrelated, but I'm curious: why do code sharing this way instead of using multiplatform, since you're already using Kotlin?
a
IIRC one of their desired behaviors is being able to update the shared logic on the fly, without an app update, but in a way that still works offline. Server can just send a new JS artifact without requiring an app update, and the app can run the JS code without being online
1
t
These are all defined as top-level vals
You can vote here - KT-44291
👍🏻 1