summaryrefslogtreecommitdiff
path: root/js/src/irregexp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/irregexp')
-rw-r--r--js/src/irregexp/RegExpEngine.cpp2
-rw-r--r--js/src/irregexp/RegExpParser.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/js/src/irregexp/RegExpEngine.cpp b/js/src/irregexp/RegExpEngine.cpp
index 75c6f4547a..0fb783170e 100644
--- a/js/src/irregexp/RegExpEngine.cpp
+++ b/js/src/irregexp/RegExpEngine.cpp
@@ -3348,7 +3348,7 @@ EmitAtomLetter(RegExpCompiler* compiler,
}
case 4:
macro_assembler->CheckCharacter(chars[3], &ok);
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case 3:
macro_assembler->CheckCharacter(chars[0], &ok);
macro_assembler->CheckCharacter(chars[1], &ok);
diff --git a/js/src/irregexp/RegExpParser.cpp b/js/src/irregexp/RegExpParser.cpp
index 025efbb0ac..cd9277f818 100644
--- a/js/src/irregexp/RegExpParser.cpp
+++ b/js/src/irregexp/RegExpParser.cpp
@@ -987,7 +987,7 @@ RegExpParser<CharT>::ParseClassEscape(char16_t* char_class, widechar *value,
}
return true;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
default:
if (!ParseClassCharacterEscape(value))
return false;
@@ -1981,7 +1981,7 @@ RegExpParser<CharT>::ParseDisjunction()
Advance(2);
break;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
}
case '0': {
if (unicode_) {
@@ -2094,7 +2094,7 @@ RegExpParser<CharT>::ParseDisjunction()
int dummy;
if (ParseIntervalQuantifier(&dummy, &dummy))
return ReportError(JSMSG_NOTHING_TO_REPEAT);
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
}
default:
if (unicode_) {