No issue - Fix invalid neq check on assert in RegExpParser

This commit is contained in:
FranklinDM 2023-01-04 21:35:58 +08:00 • committed by roytam1
commit 2f7f622cd4

View file

@ -1238,7 +1238,7 @@ RegExpParser<CharT>::CreateNamedCaptureAtIndex(const CharacterVector* name,
int index) int index)
{ {
MOZ_ASSERT(0 < index && index <= captures_started_); MOZ_ASSERT(0 < index && index <= captures_started_);
MOZ_ASSERT(name !== nullptr); MOZ_ASSERT(name != nullptr);
RegExpCapture* capture = GetCapture(index); RegExpCapture* capture = GetCapture(index);
MOZ_ASSERT(capture->name() == nullptr); MOZ_ASSERT(capture->name() == nullptr);