Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target WasmJS #646

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Target WasmJS #646

wants to merge 1 commit into from

Conversation

matt-ramotar
Copy link
Collaborator

@matt-ramotar matt-ramotar commented Jun 29, 2024

Closes #644

Test Plan

All existing unit tests are passing

Additional Notes:

https://youtrack.jetbrains.com/issue/KT-69534/WasmJs-compilation-fails-with-anonymous-objects-and-exception-throwing-in-when-expressions. Changes to compile:

  • Replaced anonymous object with private class DefaultConverter (see RealStoreBuilder.kt)
  • Refactored StoreReadResponse.Error.doThrow() to return Throwable (see StoreReadResponse.kt)

Updated:

Signed-off-by: matt-ramotar <[email protected]>
Copy link
Contributor

@amrfarid140 amrfarid140 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there 👋🏽 I like reading OSS PRs for projects I am using. I spotted one tiny feedback but please feel free to ignore as I don't have a good level of context on this work.

when (this) {
is StoreReadResponse.Error.Exception -> throw error
is StoreReadResponse.Error.Message -> throw RuntimeException(message)
fun StoreReadResponse.Error.doThrow(): Throwable {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: doThrow name isn't applicable anymore here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Triage
Development

Successfully merging this pull request may close these issues.

Support for wasmJS target
2 participants