Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 4a5f399677a79ef732009fd27fb5914f57fe5ee4..63d783145b39195d22386c91e3b0a315579dca8e 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -734,8 +734,8 @@ void Compiler::SetFunctionInfo(Handle<SharedFunctionInfo> function_info, |
FunctionLiteral* lit, |
bool is_toplevel, |
Handle<Script> script) { |
- function_info->set_length(lit->num_parameters()); |
- function_info->set_formal_parameter_count(lit->num_parameters()); |
+ function_info->set_length(lit->parameter_count()); |
+ function_info->set_formal_parameter_count(lit->parameter_count()); |
function_info->set_script(*script); |
function_info->set_function_token_position(lit->function_token_position()); |
function_info->set_start_position(lit->start_position()); |