https://kotlinlang.org logo
#test
Title
# test
c

christophsturm

09/27/2023, 8:44 AM
its really very unexpected that assert is not supported in kotlin/js. is there any way to bump this ticket? https://youtrack.jetbrains.com/issue/KT-24471/Implement-assert-in-Kotlin-JS
e

ephemient

09/29/2023, 2:07 PM
I don't see any use for
assert
. it does weird
-ea
stuff on JVM and better alternatives like
check
,
require
,
assertTrue
, etc. are standard
c

christophsturm

09/29/2023, 2:11 PM
The main use is in unit tests via (kotlin-) power assert
Like mentioned in the ticket
And it reads better than the alternatives that you mentioned