Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use fromCodePoint / codePointAt APIs #24356

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 1 commit into from
May 19, 2025

Conversation

RReverser
Copy link
Collaborator

These APIs were added to JS strings long ago now and are supported in all engines specified in our OLDEST_* browser versions.

They save some code size by avoiding manual UTF-16 <-> UTF-32 conversion, although we still need to worry about correct iteration.

@RReverser RReverser requested a review from sbc100 May 17, 2025 01:17
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.

Nice find!

Thanks for all the recent improvements ingvar!

@juj will be glad to see this too I'm sure

@sbc100
Copy link
Collaborator

sbc100 commented May 17, 2025

I fixed the test-esm-integration on main if you want to re-base (or we can just land this)

I might want to wait for @juj or @kripken in case they know of any reason not to go this direction.

Copy link
Collaborator

@juj juj left a comment

Choose a reason for hiding this comment

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

Very nice, happy to see size improvements in these core functions.

These APIs were added to JS strings long ago now and are supported in all engines specified in our `OLDEST_*` browser versions.

They save some code size by avoiding manual UTF-16 <-> UTF-32 conversion, although we still need to worry about correct iteration.
@RReverser
Copy link
Collaborator Author

I fixed the test-esm-integration on main if you want to re-base (or we can just land this)

Thanks, all green now.

@RReverser RReverser merged commit 15890bb into emscripten-core:main May 19, 2025
30 checks passed
@RReverser RReverser deleted the code-point-apis branch May 19, 2025 13:10
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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.