ade
03/25/2025, 1:24 PMCLOVIS
03/25/2025, 1:43 PMEdoardo Luppi
03/25/2025, 1:53 PMPKG1
\ K/JS lib
/
PKG2
And then they output
PKG1 BUNDLE1
\ K/JS lib /
/ \
PKG2 BUNDLE2
And you load both bundles in Node/browser?Edoardo Luppi
03/25/2025, 1:54 PMade
03/25/2025, 1:55 PMade
03/25/2025, 1:57 PMUnsupportedOperationException {message: 'third-party implementation of CancellableContinuation is not supported'
ade
03/25/2025, 1:58 PMade
03/25/2025, 1:58 PMSerializer for subclass 'GoHome' is not found in the polymorphic scope of 'EndResult'.
Check if class with serial name 'GoHome' exists and serializer is registered in a corresponding SerializersModule. ...
Edoardo Luppi
03/25/2025, 2:01 PMade
03/25/2025, 2:03 PMade
03/25/2025, 2:05 PMEdoardo Luppi
03/25/2025, 2:07 PMEdoardo Luppi
03/25/2025, 2:09 PMade
03/25/2025, 2:10 PMEdoardo Luppi
03/25/2025, 2:11 PMade
03/25/2025, 2:12 PMEdoardo Luppi
03/25/2025, 2:13 PMEdoardo Luppi
03/25/2025, 2:14 PMkotlin.js.ir.output.granularity = whole-program
?ade
03/25/2025, 2:14 PMEdoardo Luppi
03/25/2025, 2:18 PMade
03/25/2025, 2:19 PMEdoardo Luppi
03/25/2025, 2:23 PMade
03/25/2025, 2:24 PMEdoardo Luppi
03/25/2025, 2:25 PMturansky
03/25/2025, 2:38 PMI was just going to say that's the bundler's duty to fix this issueIt depends on root cause of the problem
turansky
03/25/2025, 2:40 PMPromise
<-> Deferred
is unsafe now and should be fixed in coroutinesEdoardo Luppi
03/25/2025, 5:02 PMturansky
03/25/2025, 5:11 PMDeferred
to Promise
- result Promise
will contain field deferred
and it's unsafe - other Kotlin/JS applications can use it too 😞turansky
03/25/2025, 5:13 PMDeferred
!"turansky
03/25/2025, 5:17 PMwindow
contains magic string properties, created by coroutines - redundant conflicts are expected 😞Edoardo Luppi
03/25/2025, 5:22 PMdeferred
property injected into the promise. Looking at the Git blame it's been there forever. I guess it was done as a potential optimization when converting back from the same promise.turansky
03/25/2025, 5:24 PMI guess it was done as a potential optimization when converting back from the same promise.It works fine with private symbol 😉
turansky
03/25/2025, 5:25 PMade
03/26/2025, 1:31 PM