diff --git a/js/src/irregexp/RegExpParser.cpp b/js/src/irregexp/RegExpParser.cpp index ed86fe2464..7c6ddb1130 100644 --- a/js/src/irregexp/RegExpParser.cpp +++ b/js/src/irregexp/RegExpParser.cpp @@ -1238,7 +1238,7 @@ RegExpParser::CreateNamedCaptureAtIndex(const CharacterVector* name, int index) { MOZ_ASSERT(0 < index && index <= captures_started_); - MOZ_ASSERT(name !== nullptr); + MOZ_ASSERT(name != nullptr); RegExpCapture* capture = GetCapture(index); MOZ_ASSERT(capture->name() == nullptr);