diff options
Diffstat (limited to 'js/src/builtin/MapObject.cpp')
-rw-r--r-- | js/src/builtin/MapObject.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/builtin/MapObject.cpp b/js/src/builtin/MapObject.cpp index fe748a6bde..76f85cad63 100644 --- a/js/src/builtin/MapObject.cpp +++ b/js/src/builtin/MapObject.cpp @@ -476,7 +476,7 @@ class js::OrderedHashTableRef : public gc::BufferableRef }; template <typename ObjectT> -inline static MOZ_MUST_USE bool +[[nodiscard]] inline static bool WriteBarrierPostImpl(JSRuntime* rt, ObjectT* obj, const Value& keyValue) { if (MOZ_LIKELY(!keyValue.isObject())) @@ -501,13 +501,13 @@ WriteBarrierPostImpl(JSRuntime* rt, ObjectT* obj, const Value& keyValue) return true; } -inline static MOZ_MUST_USE bool +[[nodiscard]] inline static bool WriteBarrierPost(JSRuntime* rt, MapObject* map, const Value& key) { return WriteBarrierPostImpl(rt, map, key); } -inline static MOZ_MUST_USE bool +[[nodiscard]] inline static bool WriteBarrierPost(JSRuntime* rt, SetObject* set, const Value& key) { return WriteBarrierPostImpl(rt, set, key); |