diff options
Diffstat (limited to 'js/src/jsstr.cpp')
-rw-r--r-- | js/src/jsstr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsstr.cpp b/js/src/jsstr.cpp index 593cf4d708..c539141130 100644 --- a/js/src/jsstr.cpp +++ b/js/src/jsstr.cpp @@ -1852,7 +1852,7 @@ class StringSegmentRange : stack(cx, StringVector(cx)), cur(cx) {} - MOZ_MUST_USE bool init(JSString* str) { + [[nodiscard]] bool init(JSString* str) { MOZ_ASSERT(stack.empty()); return settle(str); } @@ -1866,7 +1866,7 @@ class StringSegmentRange return cur; } - MOZ_MUST_USE bool popFront() { + [[nodiscard]] bool popFront() { MOZ_ASSERT(!empty()); if (stack.empty()) { cur = nullptr; |