Skip to content

Fix unpaired surrogate in test #1072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 28, 2025
Merged

Fix unpaired surrogate in test #1072

merged 7 commits into from
Apr 28, 2025

Conversation

aphillips
Copy link
Member

Fixes #1062 per 2025-04-21 call

Fixes #1062 per 2025-04-21 call
Comments, of course, are not legal JSON either, but sometimes work... removing here so we can handle differently.
@aphillips aphillips added the test-suite Issue pertains to tests label Apr 21, 2025
Copy link
Collaborator

@eemeli eemeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't want to include an escaped unpaired surrogate to accommodate a possible understanding of the JSON spec, we should not include a double-escaped one either.

In other words, if this one particular feature is not representable in JSON, we should instead describe the required test in test/README.md or somewhere else, as it'll need special handling in any case.

Co-authored-by: Eemeli Aro <eemeli@mozilla.com>
@aphillips
Copy link
Member Author

Fair point. I'll modify the readme in the next push.

aphillips and others added 2 commits April 22, 2025 08:40
Co-authored-by: Eemeli Aro <eemeli@mozilla.com>
Co-authored-by: Eemeli Aro <eemeli@mozilla.com>
@aphillips aphillips requested a review from eemeli April 22, 2025 15:40
@eemeli eemeli merged commit 12b82c4 into main Apr 28, 2025
2 checks passed
@aphillips aphillips deleted the aphillips-unpaired-test branch April 29, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test-suite Issue pertains to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test for unpaired surrogates is rejected by some JSON parsers
4 participants