-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix semantics of JSONUnkeyedDecodingContainer (#62)
The following behaviors are now handled correctly: - It is no longer possible for `self.count` or `self.isAtEnd` to accidentally get out of sync with reality, they are now computed. - Bounds are now correctly checked and a more useful `DecodingError` thrown (may have performance implications; removing this check is not strictly against protocol if so). - Decoding no longer incorrectly increments the current index if the decode fails for any reason. - `decodeNil()` no longer incorrectly increments the current index if the result is not `nil`.
- Loading branch information
Showing
5 changed files
with
222 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.