Skip to content
New issue

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

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

Already on GitHub? # to your account

Temporary fix to prevent ingestion failure for invalid surrogate literals #204

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

arodionov
Copy link
Contributor

@arodionov arodionov commented Jan 28, 2025

As a temporary fix, we detect the invalid surrogate pairs literal and throw ParseError.
Later on, it should be reworked to parse and represent invalid surrogate pairs in a safe way.

…rals

As a temporary fix, we detect the invalid surrogate literals and insert additional escape symbol.
As a result, it prevents ingestion failure but introduces inequality between literals.
Should be fixed later on.
@arodionov arodionov added bug Something isn't working parser-javascript labels Jan 28, 2025
@arodionov arodionov self-assigned this Jan 28, 2025
@arodionov arodionov merged commit 7a31afa into main Jan 29, 2025
1 check passed
@arodionov arodionov deleted the fix-surrogate branch January 29, 2025 13:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working parser-javascript
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant