forked from mirrors/gecko-dev
Bug 1827359 - Add release assert to CompilationAtomCache::getExistingStringAt() r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D176031
This commit is contained in:
parent
065fedf0f6
commit
9361cffce0
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -4587,6 +4588,7 @@ void ExtensibleCompilationStencil::dumpAtom(TaggedParserAtomIndex index) {
|
|||
|
||||
JSString* CompilationAtomCache::getExistingStringAt(
|
||||
ParserAtomIndex index) const {
|
||||
MOZ_RELEASE_ASSERT(atoms_.length() >= index);
|
||||
return atoms_[index];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue