From 24c40b583687e6f67ba57e6c8927515ceb5399ce Mon Sep 17 00:00:00 2001 From: meatloaf Date: Wed, 3 Feb 2021 20:53:17 -0600 Subject: Issue #1726 - Implement String.replaceAll() This also implements IsRegExp, as this demands it. Ported from https://bugzilla.mozilla.org/show_bug.cgi?id=1540021 --- js/src/jsstr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/src/jsstr.h') diff --git a/js/src/jsstr.h b/js/src/jsstr.h index 42891900fa..0e31276a86 100644 --- a/js/src/jsstr.h +++ b/js/src/jsstr.h @@ -476,6 +476,10 @@ JSString* str_replace_string_raw(JSContext* cx, HandleString string, HandleString pattern, HandleString replacement); +JSString* +str_replaceAll_string_raw(JSContext* cx, HandleString string, HandleString pattern, + HandleString replacement); + extern bool StringConstructor(JSContext* cx, unsigned argc, Value* vp); -- cgit v1.2.3