diff options
author | meatloaf <ktulip2@protonmail.com> | 2021-02-03 20:53:17 -0600 |
---|---|---|
committer | meatloaf <ktulip2@protonmail.com> | 2021-02-04 12:59:54 -0600 |
commit | 24c40b583687e6f67ba57e6c8927515ceb5399ce (patch) | |
tree | 8b2a41127db4e432e31609f354ed62b56a5057e0 /js/src/jsstr.h | |
parent | c5ad76a2875ca5c06c5bbff7b2f2e3ff7b3599c3 (diff) | |
download | uxp-24c40b583687e6f67ba57e6c8927515ceb5399ce.tar.gz |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |