diff options
Diffstat (limited to 'js/src/vm/SavedFrame.h')
-rw-r--r-- | js/src/vm/SavedFrame.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/vm/SavedFrame.h b/js/src/vm/SavedFrame.h index 6995cbb359..2981b9e4a3 100644 --- a/js/src/vm/SavedFrame.h +++ b/js/src/vm/SavedFrame.h @@ -157,7 +157,7 @@ class SavedFrame : public NativeObject { private: static SavedFrame* create(JSContext* cx); - static MOZ_MUST_USE bool finishSavedFrameInit(JSContext* cx, HandleObject ctor, HandleObject proto); + [[nodiscard]] static bool finishSavedFrameInit(JSContext* cx, HandleObject ctor, HandleObject proto); void initFromLookup(HandleLookup lookup); void initSource(JSAtom* source); void initLine(uint32_t line); @@ -228,7 +228,7 @@ struct ReconstructedSavedFramePrincipals : public JSPrincipals this->refcount = 1; } - MOZ_MUST_USE bool write(JSContext* cx, JSStructuredCloneWriter* writer) override { + [[nodiscard]] bool write(JSContext* cx, JSStructuredCloneWriter* writer) override { MOZ_ASSERT(false, "ReconstructedSavedFramePrincipals should never be exposed to embedders"); return false; } @@ -311,8 +311,8 @@ class ConcreteStackFrame<SavedFrame> : public BaseStackFrame { bool isSystem() const override; - MOZ_MUST_USE bool constructSavedFrameStack(JSContext* cx, - MutableHandleObject outSavedFrameStack) + [[nodiscard]] bool constructSavedFrameStack(JSContext* cx, + MutableHandleObject outSavedFrameStack) const override; }; |