Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index c265b95aca07510c3a837a823e4cd9cb68ee8257..97d5ddc816928707756e24ed6d4b5b59578abb17 100755 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -736,6 +736,7 @@ void Compiler::SetFunctionInfo(Handle<SharedFunctionInfo> function_info, |
function_info->set_start_position(lit->start_position()); |
function_info->set_end_position(lit->end_position()); |
function_info->set_is_expression(lit->is_expression()); |
+ function_info->set_is_anonymous(lit->name()->length() == 0); |
function_info->set_is_toplevel(is_toplevel); |
function_info->set_inferred_name(*lit->inferred_name()); |
function_info->SetThisPropertyAssignmentsInfo( |