Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 080ae357e18e60b7ec510fa1bb7b6bae2c54ad04..be760ee4e5eeaa37ff7447d4e4803a6168f8fb0d 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -3627,7 +3627,6 @@ Expression* Parser::ParseClassLiteral(const AstRawString* name, |
block_state.set_start_position(scanner()->location().end_pos); |
ExpressionClassifier extends_classifier(this); |
extends = ParseLeftHandSideExpression(CHECK_OK); |
- CheckNoTailCallExpressions(CHECK_OK); |
RewriteNonPattern(CHECK_OK); |
impl()->AccumulateFormalParameterContainmentErrors(); |
} else { |
@@ -4298,12 +4297,7 @@ void Parser::MarkCollectedTailCallExpressions() { |
const ZoneList<Expression*>& tail_call_expressions = |
function_state_->tail_call_expressions().expressions(); |
for (int i = 0; i < tail_call_expressions.length(); ++i) { |
- Expression* expression = tail_call_expressions[i]; |
- // If only FLAG_harmony_explicit_tailcalls is enabled then expression |
- // must be a Call expression. |
- DCHECK(FLAG_harmony_tailcalls || !FLAG_harmony_explicit_tailcalls || |
- expression->IsCall()); |
- MarkTailPosition(expression); |
+ MarkTailPosition(tail_call_expressions[i]); |
} |
} |