|
@v8js | |||||
|
JavaScript gains first-class support for global substring replacement! 🔥
@mathias explains the new String.prototype.replaceAll API: v8.dev/features/strin…
(V8 v8.0 has an experimental implementation behind the --harmony-string-replaceall flag.)
|
||||||
|
||||||
|
Kagami S. Rosylight
@saschaplas
|
11. stu |
|
Could we fix this by the way? 👀 pic.twitter.com/oYAWv8WvaM
|
||
|
|
||
|
Mathias Bynens
@mathias
|
11. stu |
|
Good catch! Filed github.com/v8/v8.dev/issu… to track.
|
||
|
|
||
|
getify
@getify
|
11. stu |
|
very thankful the "throw-on-non-global-regex" made it.
|
||
|
|
||
|
Mathias Bynens
@mathias
|
11. stu |
|
Same here. Glad the web compat investigation (for changing matchAll accordingly) turned out okay: bugs.chromium.org/p/v8/issues/de…
|
||
|
|
||
|
Jonathan Dunlap
@jadbox
|
11. stu |
|
Is there a polyfill yet?
|
||
|
|
||
|
Šime Vidas
@simevidas
|
16. stu |
|
|
||