mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
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:
parent
57b639c19c
commit
500966af98
@ -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),
|
||||
|
||||
|
@ -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);
|
||||
|
@ -50,7 +50,6 @@ RELEASE_OR_BETA = set([
|
||||
"Intl.DateTimeFormat-fractionalSecondDigits",
|
||||
"Promise.any",
|
||||
"AggregateError",
|
||||
"String.prototype.replaceAll",
|
||||
"logical-assignment-operators",
|
||||
])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user