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/jsstr.h | |
parent | f932fb94d87bcba20325ba6978595cbf6be4dcb2 (diff) | |
download | uxp-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.h | 4 |
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); |