Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 184429b41752a713c772d05b947571621e561877..270c7957b9d9d38d647adad6e8fffa74ab44b90c 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -553,6 +553,7 @@ static Handle<SharedFunctionInfo> MakeFunctionInfo(CompilationInfo* info) { |
isolate->factory()->NewSharedFunctionInfo( |
lit->name(), |
lit->materialized_literal_count(), |
+ lit->is_generator(), |
info->code(), |
ScopeInfo::Create(info->scope(), info->zone())); |
@@ -1074,6 +1075,7 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(FunctionLiteral* literal, |
Handle<SharedFunctionInfo> result = |
FACTORY->NewSharedFunctionInfo(literal->name(), |
literal->materialized_literal_count(), |
+ literal->is_generator(), |
info.code(), |
scope_info); |
SetFunctionInfo(result, literal, false, script); |