Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index c5a1fddb88b413c843f7ca051a421026b035537c..8623f0040d037a12c2972c7b231504a273dc2964 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1219,6 +1219,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(kGenerator); |
} |
return shared; |
} |