diff --git a/js/src/vm/DebuggerMemory.cpp b/js/src/vm/DebuggerMemory.cpp index 8dde3540f341..abd92adafa0d 100644 --- a/js/src/vm/DebuggerMemory.cpp +++ b/js/src/vm/DebuggerMemory.cpp @@ -943,7 +943,7 @@ class ByUbinodeType : public CountType { count.~Count(); } - bool count(CountBase& countBase, const Node& node) { + bool count(CountBase& countBase, const Node& node) override { Count& count = static_cast(countBase); count.total_++; @@ -1084,7 +1084,7 @@ class ByAllocationStack : public CountType { count.~Count(); } - bool count(CountBase& countBase, const Node& node) { + bool count(CountBase& countBase, const Node& node) override { Count& count = static_cast(countBase); count.total_++;