Rok Oblak
11/20/2024, 10:09 AMaddEventListener("error", (event) => unhandledError(event, event.error));
addEventListener("unhandledrejection", (event) => unhandledError(event, event.reason));
Tried adding try/catch in the main function but also no luck.
The crash does get logged in the console though, and Sentry JS does capture it as well.Artem Kobzar
11/20/2024, 11:35 AMRok Oblak
11/20/2024, 3:27 PMchunked[6]
to force a crash, it does not catch it in my JS handler and the console log is very undescriptive.
If I simply replace this with a listOf(1, 2, 3)[3], the crash is caught by the handler and also the console log has the entire stacktrace.
The only difference that I see is that the chunked
is a computed value from an observed state.Rok Oblak
11/20/2024, 3:29 PMArtem Kobzar
11/20/2024, 6:04 PMRok Oblak
11/21/2024, 12:40 AM0.8.3(242)-5
Artem Kobzar
11/21/2024, 12:04 PMRok Oblak
11/21/2024, 12:45 PMArtem Kobzar
11/21/2024, 12:54 PMplugins {
kotlin("multiplatform") version "..."
}
...
Or in the `lib.versions.toml`:
[versions]
kotlin = "..."
[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
Rok Oblak
11/21/2024, 1:27 PMArtem Kobzar
11/21/2024, 1:55 PMArtem Kobzar
11/22/2024, 5:56 PMRok Oblak
11/22/2024, 5:59 PMArtem Kobzar
11/22/2024, 6:06 PM