-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Implement String.prototype.replaceAll #6297
Comments
Thanks @mathiasbynens, and congrats! |
I could take this one if wanted? A preliminary look however shows that to fully satisfy spec for this the implementation of ES6 Regex Symbols needs fixing and enabling though that could be done after the main implementation of this was done. |
@rhuanjl Of course you can! I've been meaning to do an analysis to determine what work needs to be done to get our RegExp symbols implementation working correctly, but I haven't had the time yet. Do you have some ideas about what work items are left on that? |
I've not looked at the Regex symbols issue in detail, but I've noted:
I figure I should run test 262 with the RegEx symbol flag and see what fails and work on it that way - though also need to look into 2.b above which test262 probably wouldn't hit. As another related point we don't seem to have an issue for implementing matchAll and the related |
Minor update: With the relevant flags passed there are 1036 regex related test failures including both the absense of matchAll and the missing/slightly broken earlier features. I'll endeavour to work through fixing as many of these as I can over the next week or two then aim to submit a PR with those fixes followed by a PR to implement EDIT: 118 to fix for existing implemented RegExp features + matchAll |
Doing this sensibly is blocked on #6390 |
The proposal reached stage 3 at today’s TC39 meeting.
Repository: https://github.com/tc39/proposal-string-replaceall
The text was updated successfully, but these errors were encountered: