RegExp backreferences
enhancement
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
9 条评论