Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 755be2a3e525a23a102b5f36f189359fde32e377..47b555c27706a8d9c65f53f856a9c4b3afaac916 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -793,7 +793,8 @@ static bool UseIgnition(CompilationInfo* info) { |
} |
// TODO(4681): Generators are not yet supported. |
- if (info->has_shared_info() && info->shared_info()->is_generator()) { |
+ if ((info->has_shared_info() && info->shared_info()->is_generator()) || |
+ (info->has_literal() && IsGeneratorFunction(info->literal()->kind()))) { |
return false; |
} |