Index: src/runtime/runtime-scopes.cc |
diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc |
index b1c0fe33d95bba15b70810b8b9e7ab13b068555b..e3a0d52d569e13de5daf97473155c0cc7aef630e 100644 |
--- a/src/runtime/runtime-scopes.cc |
+++ b/src/runtime/runtime-scopes.cc |
@@ -356,12 +356,11 @@ |
Handle<JSFunction> callee, |
Object** parameters, |
int argument_count) { |
- CHECK(!IsSubclassConstructor(callee->shared()->kind())); |
Handle<JSObject> result = |
isolate->factory()->NewArgumentsObject(callee, argument_count); |
// Allocate the elements if needed. |
- int parameter_count = callee->shared()->internal_formal_parameter_count(); |
+ int parameter_count = callee->shared()->formal_parameter_count(); |
if (argument_count > 0) { |
if (parameter_count > 0) { |
int mapped_count = Min(argument_count, parameter_count); |