You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default Kotlin generate exceptions in the js code but they are not visible in the Typescript code.
By exposing exceptions like CancellationException for Typescript, KustomExport actually generates a duplicated class in the js code. If passing one exception via a method is properly handled, if exception is thrown it's not wrapping the exception. So eventually we ends up with CancellationException and CancellationException_1 in the js code, and the instanceof is failing.
Proposed solution: use external + @JsExport instead of redefining those exception classes.
The text was updated successfully, but these errors were encountered:
By default Kotlin generate exceptions in the js code but they are not visible in the Typescript code.
By exposing exceptions like CancellationException for Typescript, KustomExport actually generates a duplicated class in the js code. If passing one exception via a method is properly handled, if exception is thrown it's not wrapping the exception. So eventually we ends up with
CancellationException
andCancellationException_1
in the js code, and the instanceof is failing.Proposed solution: use
external
+@JsExport
instead of redefining those exception classes.The text was updated successfully, but these errors were encountered: