Skip to content

Simplify + optimize lengthBytesUTF8. Don't fully decode surrogates #17413

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 5 commits into from
Jul 17, 2022

Conversation

MaxGraey
Copy link
Contributor

lengthBytesUTF8 can be simplified and don't fully decode code point to low & high surrogates for UTF8 length calculation.

Copy link
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

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

I hope we have enough test coverage here because I can't say a fully grok the implications.

@sbc100 sbc100 enabled auto-merge (squash) July 15, 2022 07:31
@sbc100
Copy link
Collaborator

sbc100 commented Jul 15, 2022

For some reason circleci doesn't seem to be running on this PR... you are not supposed to need to circleci account to run these but we have has issues in the past where it appeared to help. Would you mind trying to log in to circleci?

auto-merge was automatically disabled July 15, 2022 17:59

Head branch was pushed to by a user without write access

@MaxGraey
Copy link
Contributor Author

Looks like all tests passed

@MaxGraey MaxGraey requested a review from sbc100 July 16, 2022 05:09
@sbc100 sbc100 merged commit 8c047b1 into emscripten-core:main Jul 17, 2022
@MaxGraey MaxGraey deleted the simplify-utf8-len-calc branch July 17, 2022 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants