Skip to content

UnicodeMatchPropertyValue assertion fails by UnicodePropertyValueExpression #3586

Open
@Jack-Works

Description

@Jack-Works
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.

Activity

added 2 commits that reference this issue on May 4, 2025
5b388f7
606677e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Jack-Works

      Issue actions

        UnicodeMatchPropertyValue assertion fails by UnicodePropertyValueExpression · Issue #3586 · tc39/ecma262