Skip to content

UnicodeMatchPropertyValue assertion fails by UnicodePropertyValueExpression #3586

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

Open
Jack-Works opened this issue May 4, 2025 · 0 comments · May be fixed by #3587
Open

UnicodeMatchPropertyValue assertion fails by UnicodePropertyValueExpression #3586

Jack-Works opened this issue May 4, 2025 · 0 comments · May be fixed by #3587

Comments

@Jack-Works
Copy link
Member

For the RegExp: /[\p{Hex}]/u:

CompileToCharSet
For production UnicodePropertyValueExpression :: LoneUnicodePropertyNameOrValue, s is Hex, in step 2, it calls UnicodeMatchPropertyValue(General_Category, s)

UnicodeMatchPropertyValue
2. Assert: v (in this case, Hex) is a property value or property value alias for the Unicode property p (in this case, General_Category) listed in PropertyValueAliases.txt.

In PropertyValueAliases.txt, no entry starts with gc ; Hex, so this assert should fail.

gibson042 added a commit to gibson042/ecma262 that referenced this issue May 4, 2025
gibson042 added a commit to gibson042/ecma262 that referenced this issue May 4, 2025
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 a pull request may close this issue.

1 participant