fix(decode): report the smallest unknown field deterministically

Assisted-by: GLM 5.3
This commit is contained in:
2026-09-17 23:11:38 +02:00
parent 4def1b3e8b
commit 3c8ac859c0
4 changed files with 42 additions and 4 deletions
+3
View File
@@ -45,6 +45,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Strict decoding reports the smallest unknown key. Several unknown keys in
one table made the message depend on Go's random map iteration order, so
the same document reported different keys across runs.
- A `MarshalTOML` result of `nil` with a nil error fails the marshal with
`MarshalTOML returned a nil value`. The field silently vanished before, and
inside a value array the nil result reached reflection as a zero value and