summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-04-17 17:29:58 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-17 17:29:58 +0000
commitcc231f0a26bab354874ab4149d415fce73d99b8e (patch)
tree5dc856600e8db18e095452125baa39b49920f340
parent2af23767e11b3eac41fd3164d241e820374eb969 (diff)
parentf2ad2ba0def2430ff8fb8c79dd9e41dbe5ad128a (diff)
downloaduxp-cc231f0a26bab354874ab4149d415fce73d99b8e.tar.gz
Merge pull request 'Set canonical name for trimStart and trimEnd functions' (#1870) from FranklinDM/UXP-contrib:work_js-selfhosted-trim-assertion into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/1870
-rw-r--r--js/src/builtin/String.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/builtin/String.js b/js/src/builtin/String.js
index c70f8558be..233a7323b2 100644
--- a/js/src/builtin/String.js
+++ b/js/src/builtin/String.js
@@ -969,12 +969,14 @@ function String_static_trimStart(string) {
ThrowTypeError(JSMSG_MISSING_FUN_ARG, 0, 'String.trimStart');
return callFunction(std_String_trimStart, string);
}
+_SetCanonicalName(String_static_trimStart, "trimStart");
function String_static_trimEnd(string) {
if (arguments.length < 1)
ThrowTypeError(JSMSG_MISSING_FUN_ARG, 0, 'String.trimEnd');
return callFunction(std_String_trimEnd, string);
}
+_SetCanonicalName(String_static_trimEnd, "trimEnd");
function String_static_toLocaleLowerCase(string) {
if (arguments.length < 1)