Skip to content

Unicode property escapes for different ES versions 2018-2023 #19631

@robatwilliams

Description

@robatwilliams

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

There is a compatibility entry for these escapes at javascript.regular_expressions.unicode_character_class_escape.

That is a single entry, but successive ES versions have added more escapes. Examples can be found in the yearly rules of the eslint-plugin-es-x, such as es-x/no-regexp-unicode-property-escapes-2022.

It would be good to have the support for each different set of escapes be available in the database separately.

What browsers does this problem apply to, if applicable?

No response

What did you expect to see?

Database entries for unicode_character_class_escape_2018, unicode_character_class_escape_2019, etc.

Did you test this? If so, how?

Looked through database files, searched code and issues. Didn't find the information.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions/Unicode_property_escapes

Do you have anything more you want to share?

The lack of broken-down data by ES version/year is blocking robatwilliams/es-compat#63

I'm not familiar with the use of these escapes, but it was @ota-meshi who implemented the detection rules in eslint-community/eslint-plugin-es-x#26 and eslint-community/eslint-plugin-es-x#65

MDN URL

No response

MDN metadata

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:jsCompat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions