Fix reading past comments after an end object or end array token within Utf8JsonReade...
authorAhson Khan <ahson_ahmedk@yahoo.com>
Tue, 20 Aug 2019 11:47:41 +0000 (04:47 -0700)
committerGitHub <noreply@github.com>
Tue, 20 Aug 2019 11:47:41 +0000 (04:47 -0700)
commit3c0fed6f4d51fc3883e254960e280aac8e61b3db
tree811441f13a944caf42276a34d9ee46b8e8fe4f42
parent34a999db7cd29056349916e9b2bb1b4e361f8d02
Fix reading past comments after an end object or end array token within Utf8JsonReader (dotnet/corefx#40436)

* Fix reading past comments after an end object or end array token.

* Add more test cases and update unreachable code paths with
Debug.Asserts.

Commit migrated from https://github.com/dotnet/corefx/commit/247793c64816a887c4ff47a92acdd9b527b7873b
src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.MultiSegment.cs
src/libraries/System.Text.Json/src/System/Text/Json/Reader/Utf8JsonReader.cs
src/libraries/System.Text.Json/tests/Utf8JsonReaderTests.MultiSegment.cs