summaryrefslogtreecommitdiff
path: root/js/src/jsfriendapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jsfriendapi.h')
-rw-r--r--js/src/jsfriendapi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsfriendapi.h b/js/src/jsfriendapi.h
index c463019dac..508ddc4419 100644
--- a/js/src/jsfriendapi.h
+++ b/js/src/jsfriendapi.h
@@ -1326,11 +1326,11 @@ class MOZ_STACK_CLASS JS_FRIEND_API(AutoStableStringChars)
: s_(cx), state_(Uninitialized)
{}
- MOZ_MUST_USE
+ [[nodiscard]]
bool init(JSContext* cx, JSString* s);
/* Like init(), but Latin1 chars are inflated to TwoByte. */
- MOZ_MUST_USE
+ [[nodiscard]]
bool initTwoByte(JSContext* cx, JSString* s);
bool isLatin1() const { return state_ == Latin1; }