Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index b7fa0b2c5e577cdb6988edb8934eb98f6c49f4b8..cbdcec8213979cd75e684447bb2c3b5c02554dc2 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13728,7 +13728,7 @@ void SharedFunctionInfo::InitFromFunctionLiteral( |
Handle<SharedFunctionInfo> shared_info, FunctionLiteral* lit) { |
// When adding fields here, make sure DeclarationScope::AnalyzePartially is |
// updated accordingly. |
- shared_info->set_length(lit->scope()->arity()); |
+ shared_info->set_length(lit->function_length()); |
shared_info->set_internal_formal_parameter_count(lit->parameter_count()); |
shared_info->set_function_token_position(lit->function_token_position()); |
shared_info->set_start_position(lit->start_position()); |