summaryrefslogtreecommitdiffstats
path: root/js/src/jsstr.h
diff options
context:
space:
mode:
authormeatloaf <ktulip2@protonmail.com>2021-02-03 20:53:17 -0600
committermeatloaf <ktulip2@protonmail.com>2021-02-04 12:59:54 -0600
commit24c40b583687e6f67ba57e6c8927515ceb5399ce (patch)
tree8b2a41127db4e432e31609f354ed62b56a5057e0 /js/src/jsstr.h
parentc5ad76a2875ca5c06c5bbff7b2f2e3ff7b3599c3 (diff)
downloadUXP-24c40b583687e6f67ba57e6c8927515ceb5399ce.tar
UXP-24c40b583687e6f67ba57e6c8927515ceb5399ce.tar.gz
UXP-24c40b583687e6f67ba57e6c8927515ceb5399ce.tar.lz
UXP-24c40b583687e6f67ba57e6c8927515ceb5399ce.tar.xz
UXP-24c40b583687e6f67ba57e6c8927515ceb5399ce.zip
Issue #1726 - Implement String.replaceAll()
This also implements IsRegExp, as this demands it. Ported from https://bugzilla.mozilla.org/show_bug.cgi?id=1540021
Diffstat (limited to 'js/src/jsstr.h')
-rw-r--r--js/src/jsstr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/jsstr.h b/js/src/jsstr.h
index 42891900f..0e31276a8 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);