Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index b135a9c6705bb8866ae0d66b3c1f34ff79d526d5..52a65887a3c92bd6218b2fc7bd5b442a0854042e 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1221,6 +1221,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( |
shared->set_num_literals(literals_array_size); |
if (is_generator) { |
shared->set_instance_class_name(isolate()->heap()->Generator_string()); |
+ shared->DisableOptimization("generator"); |
} |
return shared; |
} |