Index: src/ast/ast-numbering.cc |
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc |
index 82f9767281f7ca652d9d23ae5aa21978a5c03527..06f2280460c4e01d899bb56823a3779d82c386d7 100644 |
--- a/src/ast/ast-numbering.cc |
+++ b/src/ast/ast-numbering.cc |
@@ -594,7 +594,7 @@ bool AstNumberingVisitor::Renumber(FunctionLiteral* node) { |
DisableCrankshaft(kRestParameter); |
} |
- if (IsGeneratorFunction(node->kind()) || IsAsyncFunction(node->kind())) { |
+ if (IsResumableFunction(node->kind())) { |
DisableCrankshaft(kGenerator); |
} |