-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Labels
enhancementNew feature or requestNew feature or requestregexpWe use WTF-8 but RegExp engines expect either UTF-8 or UTF-16We use WTF-8 but RegExp engines expect either UTF-8 or UTF-16
Milestone
Description
Currently, attempting to use a RegExp with backreferences throws an error: error: backreferences are not supported
They might seem niche and not-very-often used, but that unfortunately breaks much more stuff than one could expect
They are used in https://www.npmjs.com/package/get-intrinsic, which in turn is chain-required by things like:
- https://www.npmjs.com/package/set-function-length
- https://www.npmjs.com/package/call-bind
- https://www.npmjs.com/package/is-arguments
- https://www.npmjs.com/package/util
- https://www.npmjs.com/package/which-typed-array
- https://www.npmjs.com/package/is-typed-array
- https://www.npmjs.com/package/is-array-buffer
- https://www.npmjs.com/package/assert
- ... etc
In Node.js, it is supported back to at least 0.8
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestregexpWe use WTF-8 but RegExp engines expect either UTF-8 or UTF-16We use WTF-8 but RegExp engines expect either UTF-8 or UTF-16