We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d23960a commit 5b0118cCopy full SHA for 5b0118c
core/common/src/internal/format/Format.kt
@@ -130,7 +130,8 @@ private fun <T> FormatStructure<T>.parser(): ParserStructure<T> = when (this) {
130
isNegativeSetter = { value, isNegative ->
131
for (field in fields) {
132
val wasNegative = field.isNegative.get(value) == true
133
- field.isNegative.set(value, isNegative xor wasNegative)
+ // TODO: replacing `!=` with `xor` fails on JS
134
+ field.isNegative.set(value, isNegative != wasNegative)
135
}
136
},
137
withPlusSign = withPlusSign,
0 commit comments