Bug 1608168 - Part 1: Enable String.prototype.replaceAll by default. r=jorendorff

Differential Revision: https://phabricator.services.mozilla.com/D70195
This commit is contained in:
André Bargull 2020-04-28 16:15:04 +00:00
parent 57b639c19c
commit 500966af98
3 changed files with 1 additions and 6 deletions

View File

@ -3644,9 +3644,7 @@ static const JSFunctionSpec string_methods[] = {
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),
#ifdef NIGHTLY_BUILD
JS_SELF_HOSTED_FN("replaceAll", "String_replaceAll", 2, 0),
#endif
JS_SELF_HOSTED_FN("split", "String_split", 2, 0),
JS_SELF_HOSTED_FN("substr", "String_substr", 2, 0),

View File

@ -1,5 +1,3 @@
// |reftest| skip-if(!String.prototype.replaceAll)
function neverCalled() {
assertEq(true, false, "unexpected call");
}
@ -214,4 +212,4 @@ const replacer = {
}
if (typeof reportCompare === "function")
reportCompare(true, true);
reportCompare(true, true);

View File

@ -50,7 +50,6 @@ RELEASE_OR_BETA = set([
"Intl.DateTimeFormat-fractionalSecondDigits",
"Promise.any",
"AggregateError",
"String.prototype.replaceAll",
"logical-assignment-operators",
])