Skip to content

Commit 05a1b33

Browse files
committed
Remove an old workaround for the JS compiler bug
1 parent 5c196df commit 05a1b33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/commonMain/src/kotlinx/serialization/builtins/InstantComponentSerializer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ public object InstantComponentSerializer : KSerializer<Instant> {
2929
decoder.decodeStructure(descriptor) {
3030
var epochSeconds: Long? = null
3131
var nanosecondsOfSecond = 0
32-
loop@ while (true) {
32+
while (true) {
3333
when (val index = decodeElementIndex(descriptor)) {
3434
0 -> epochSeconds = decodeLongElement(descriptor, 0)
3535
1 -> nanosecondsOfSecond = decodeIntElement(descriptor, 1)
36-
CompositeDecoder.DECODE_DONE -> break@loop // https://youtrack.jetbrains.com/issue/KT-42262
36+
CompositeDecoder.DECODE_DONE -> break
3737
else -> throw SerializationException("Unexpected index: $index")
3838
}
3939
}

0 commit comments

Comments
 (0)