diff options
Diffstat (limited to 'js/src/frontend')
-rw-r--r-- | js/src/frontend/BytecodeEmitter.cpp | 2 | ||||
-rw-r--r-- | js/src/frontend/NameFunctions.cpp | 2 | ||||
-rw-r--r-- | js/src/frontend/Parser.cpp | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index 89b768344a..99204fe9f2 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -1271,7 +1271,7 @@ BytecodeEmitter::checkSideEffects(ParseNode* pn, bool* answer) // Any subexpression of a comma expression could be effectful. case PNK_COMMA: MOZ_ASSERT(!pn->as<ListNode>().empty()); - MOZ_FALLTHROUGH; + [[fallthrough]]; // Subcomponents of a literal may be effectful. case PNK_ARRAY: case PNK_OBJECT: diff --git a/js/src/frontend/NameFunctions.cpp b/js/src/frontend/NameFunctions.cpp index 3fbdd3fc8a..351611e14f 100644 --- a/js/src/frontend/NameFunctions.cpp +++ b/js/src/frontend/NameFunctions.cpp @@ -174,7 +174,7 @@ class NameResolver * flagged as a contributor. */ pos--; - MOZ_FALLTHROUGH; + [[fallthrough]]; default: /* Save any other nodes we encounter on the way up. */ diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index 96b83f7c48..037eb8dd07 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -1544,12 +1544,12 @@ Parser<ParseHandler>::noteDeclaredName(HandlePropertyName name, DeclarationKind return false; } - MOZ_FALLTHROUGH; + [[fallthrough]]; case DeclarationKind::Import: // Module code is always strict, so 'let' is always a keyword and never a name. MOZ_ASSERT(name != context->names().let); - MOZ_FALLTHROUGH; + [[fallthrough]]; case DeclarationKind::SimpleCatchParameter: case DeclarationKind::CatchParameter: { @@ -6921,7 +6921,7 @@ Parser<ParseHandler>::yieldExpression(InHandling inHandling) case TOK_MUL: kind = PNK_YIELD_STAR; tokenStream.consumeKnownToken(TOK_MUL, TokenStream::Operand); - MOZ_FALLTHROUGH; + [[fallthrough]]; default: exprNode = assignExpr(inHandling, YieldIsKeyword, TripledotProhibited); if (!exprNode) @@ -6972,7 +6972,7 @@ Parser<ParseHandler>::yieldExpression(InHandling inHandling) pc->functionBox()->setGeneratorKind(LegacyGenerator); - MOZ_FALLTHROUGH; + [[fallthrough]]; case LegacyGenerator: { @@ -9618,7 +9618,7 @@ Parser<ParseHandler>::unaryExpr(YieldHandling yieldHandling, TripledotHandling t } } - MOZ_FALLTHROUGH; + [[fallthrough]]; default: { Node expr = optionalExpr(yieldHandling, tripledotHandling, tt, |