Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 0896e429d6b1325274beb5f4abf0cf0e1c823b10..44a04ef2a5d93eb7ca10f0bbc7a74f96625180a4 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -1652,8 +1652,8 @@ void FullCodeGenerator::VisitNativeFunctionLiteral( |
// Copy the function data to the shared function info. |
shared->set_function_data(fun->shared()->function_data()); |
- int parameters = fun->shared()->formal_parameter_count(); |
- shared->set_formal_parameter_count(parameters); |
+ int parameters = fun->shared()->internal_formal_parameter_count(); |
+ shared->set_internal_formal_parameter_count(parameters); |
EmitNewClosure(shared, false); |
} |