Index: src/ast/ast-numbering.cc |
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc |
index 2079ec4627b035effb037982bc08428340a7d6d8..0ee2f970032d69529a9b48d3dfce2e71e0954fb6 100644 |
--- a/src/ast/ast-numbering.cc |
+++ b/src/ast/ast-numbering.cc |
@@ -234,6 +234,9 @@ void AstNumberingVisitor::VisitExpressionStatement(ExpressionStatement* node) { |
void AstNumberingVisitor::VisitReturnStatement(ReturnStatement* node) { |
IncrementNodeCount(); |
Visit(node->expression()); |
+ |
+ DCHECK(!node->is_async_return() || |
+ properties_.flags() & AstProperties::kMustUseIgnitionTurbo); |
} |