Skip to content
Snippets Groups Projects
Commit a3a49c89 authored by Bryan Thrall's avatar Bryan Thrall
Browse files

Bug 1827359 - Add release assert to CompilationAtomCache::getExistingStringAt(). r=jandem, a=RyanVM

parent a291b5a2
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
#include "frontend/Stencil.h"
#include "mozilla/AlreadyAddRefed.h" // already_AddRefed
#include "mozilla/Assertions.h" // MOZ_RELEASE_ASSERT
#include "mozilla/Maybe.h" // mozilla::Maybe
#include "mozilla/OperatorNewExtensions.h" // mozilla::KnownNotNull
#include "mozilla/PodOperations.h" // mozilla::PodCopy
......@@ -4063,6 +4064,7 @@ void ExtensibleCompilationStencil::dumpAtom(TaggedParserAtomIndex index) {
JSString* CompilationAtomCache::getExistingStringAt(
ParserAtomIndex index) const {
MOZ_RELEASE_ASSERT(atoms_.length() >= index);
return atoms_[index];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment