Skip to content

Update identifier definition to Unicode 18 - #18237

Merged
JLHwung merged 3 commits into
babel:mainfrom
JLHwung:unicode-18
Sep 17, 2026
Merged

JLHwung merged 3 commits into
babel:mainfrom
JLHwung:unicode-18

Conversation

@JLHwung

@JLHwung JLHwung commented Sep 11, 2026

Copy link
Copy Markdown
Contributor
Q 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

This PR is ready for review. The Unicode 18 is scheduled to be released in the next week, when we can eventually merge this PR.

@JLHwung JLHwung added PR: Bug Fix 馃悰 A type of pull request used for our changelog categories pkg: parser labels Sep 11, 2026
@babel-bot

babel-bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/62147

@JLHwung

JLHwung commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor Author

The CI error in the previous commit is expected, for whatever reasons the author of Acorn picked U+2B81E to construct an invalid identifier case:

https://github.com/acornjs/acorn/blob/f53ee5f32e0d3c59dd920a2300fb3af3232ad468/test/tests-harmony.js#L14836

And Babel parser inherits Acorn's test suite and puts them under es2015/uncategorised. The time has come to a point where U+2B81E will be assigned in the block CJK Unified Ideographs Extension D in Unicode 18 (See the last page of Unicode 18.0 CJK UI Ext. D Delta chart). For those who are curious, here is what it looks like with proper font support:

image

@pkg-pr-new

pkg-pr-new Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

commit: 4a2188c

@nicolo-ribaudo nicolo-ribaudo added PR: Spec Compliance 馃憮 A type of pull request used for our changelog categories and removed PR: Bug Fix 馃悰 A type of pull request used for our changelog categories labels Sep 11, 2026
@fisker

fisker commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

https://blog.unicode.org/2026/09/announcing-unicode-standard-version-180.html

U+2B81E has been assigned as a characger in Unicode 18. Change it to U+2FFFE, which guarantees to be a non-character code point.
@JLHwung
JLHwung merged commit fb7920d into babel:main Sep 17, 2026
57 checks passed
@JLHwung
JLHwung deleted the unicode-18 branch September 17, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: parser PR: Spec Compliance 馃憮 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants