michaelbull / kotlin-result

A multiplatform Result monad for modelling success or failure operations.
ISC License
1.02k stars 57 forks source link

Add JS targets for Kotlin Multiplatform #36

Closed DerYeger closed 3 years ago

DerYeger commented 3 years ago

This PR adds two targets for Kotlin/JS, namely browser and nodejs.

Minor changes to the common tests were necessary to ensure that they can fail on the JS platform. I also left out the ordering test for async suspendable binding due to the single threaded nature of JS.