summaryrefslogtreecommitdiff
path: root/js/src/frontend/TDZCheckCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/frontend/TDZCheckCache.h')
-rw-r--r--js/src/frontend/TDZCheckCache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/frontend/TDZCheckCache.h b/js/src/frontend/TDZCheckCache.h
index 0de53ae1e5..ffc4812da8 100644
--- a/js/src/frontend/TDZCheckCache.h
+++ b/js/src/frontend/TDZCheckCache.h
@@ -39,13 +39,13 @@ class TDZCheckCache : public Nestable<TDZCheckCache>
{
PooledMapPtr<CheckTDZMap> cache_;
- MOZ_MUST_USE bool ensureCache(BytecodeEmitter* bce);
+ [[nodiscard]] bool ensureCache(BytecodeEmitter* bce);
public:
explicit TDZCheckCache(BytecodeEmitter* bce);
mozilla::Maybe<MaybeCheckTDZ> needsTDZCheck(BytecodeEmitter* bce, JSAtom* name);
- MOZ_MUST_USE bool noteTDZCheck(BytecodeEmitter* bce, JSAtom* name, MaybeCheckTDZ check);
+ [[nodiscard]] bool noteTDZCheck(BytecodeEmitter* bce, JSAtom* name, MaybeCheckTDZ check);
};
} /* namespace frontend */