diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-05-17 01:04:30 +0000 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-05-17 01:04:30 +0000 |
commit | 354c6dceecdad5e58e2763e937ad5053e8b7d897 (patch) | |
tree | 69eea60a43998969da2a565bccf2a240340ed1a8 /js/src/vm | |
parent | f932fb94d87bcba20325ba6978595cbf6be4dcb2 (diff) | |
download | UXP-354c6dceecdad5e58e2763e937ad5053e8b7d897.tar UXP-354c6dceecdad5e58e2763e937ad5053e8b7d897.tar.gz UXP-354c6dceecdad5e58e2763e937ad5053e8b7d897.tar.lz UXP-354c6dceecdad5e58e2763e937ad5053e8b7d897.tar.xz UXP-354c6dceecdad5e58e2763e937ad5053e8b7d897.zip |
Implement String.prototype.trimStart and trimEnd.
This renames our internal function names because *Left and *Right might
be deprecated and have to be removed later, making that trivial.
Resolves #1089
Diffstat (limited to 'js/src/vm')
-rw-r--r-- | js/src/vm/SelfHosting.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/src/vm/SelfHosting.cpp b/js/src/vm/SelfHosting.cpp index 328a960b6..ccd4cc8d7 100644 --- a/js/src/vm/SelfHosting.cpp +++ b/js/src/vm/SelfHosting.cpp @@ -2200,8 +2200,10 @@ static const JSFunctionSpec intrinsic_functions[] = { JS_INLINABLE_FN("std_String_charAt", str_charAt, 1,0, StringCharAt), JS_FN("std_String_endsWith", str_endsWith, 1,0), JS_FN("std_String_trim", str_trim, 0,0), - JS_FN("std_String_trimLeft", str_trimLeft, 0,0), - JS_FN("std_String_trimRight", str_trimRight, 0,0), + JS_FN("std_String_trimLeft", str_trimStart, 0,0), + JS_FN("std_String_trimStart", str_trimStart, 0,0), + JS_FN("std_String_trimRight", str_trimEnd, 0,0), + JS_FN("std_String_trimEnd", str_trimEnd, 0,0), JS_FN("std_String_toLocaleLowerCase", str_toLocaleLowerCase, 0,0), JS_FN("std_String_toLocaleUpperCase", str_toLocaleUpperCase, 0,0), JS_FN("std_String_normalize", str_normalize, 0,0), |