summaryrefslogtreecommitdiff
path: root/js/src/jsstr.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-05-17 01:04:30 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-05-17 01:04:30 +0000
commit354c6dceecdad5e58e2763e937ad5053e8b7d897 (patch)
tree69eea60a43998969da2a565bccf2a240340ed1a8 /js/src/jsstr.h
parentf932fb94d87bcba20325ba6978595cbf6be4dcb2 (diff)
downloaduxp-354c6dceecdad5e58e2763e937ad5053e8b7d897.tar.gz
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/jsstr.h')
-rw-r--r--js/src/jsstr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsstr.h b/js/src/jsstr.h
index 118118839c..38fbfa85ed 100644
--- a/js/src/jsstr.h
+++ b/js/src/jsstr.h
@@ -367,10 +367,10 @@ extern bool
str_trim(JSContext* cx, unsigned argc, Value* vp);
extern bool
-str_trimLeft(JSContext* cx, unsigned argc, Value* vp);
+str_trimStart(JSContext* cx, unsigned argc, Value* vp);
extern bool
-str_trimRight(JSContext* cx, unsigned argc, Value* vp);
+str_trimEnd(JSContext* cx, unsigned argc, Value* vp);
extern bool
str_toLocaleLowerCase(JSContext* cx, unsigned argc, Value* vp);