Issue #1302 - Add self-hosted implementation for string regex .matchAll

This resolves #1302.
This commit is contained in:
wolfbeast 2019-11-26 13:37:09 +01:00 committed by Roy Tam
commit c16e82c9b1
13 changed files with 287 additions and 58 deletions

View file

@ -2584,6 +2584,7 @@ static const JSFunctionSpec string_methods[] = {
/* Perl-ish methods (search is actually Python-esque). */
JS_SELF_HOSTED_FN("match", "String_match", 1,0),
JS_SELF_HOSTED_FN("matchAll", "String_matchAll", 1,0),
JS_SELF_HOSTED_FN("search", "String_search", 1,0),
JS_SELF_HOSTED_FN("replace", "String_replace", 2,0),
JS_SELF_HOSTED_FN("split", "String_split", 2,0),