| Index: src/runtime/runtime-scopes.cc
|
| diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc
|
| index e3a0d52d569e13de5daf97473155c0cc7aef630e..b1c0fe33d95bba15b70810b8b9e7ab13b068555b 100644
|
| --- a/src/runtime/runtime-scopes.cc
|
| +++ b/src/runtime/runtime-scopes.cc
|
| @@ -356,11 +356,12 @@ static Handle<JSObject> NewSloppyArguments(Isolate* isolate,
|
| 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()->formal_parameter_count();
|
| + int parameter_count = callee->shared()->internal_formal_parameter_count();
|
| if (argument_count > 0) {
|
| if (parameter_count > 0) {
|
| int mapped_count = Min(argument_count, parameter_count);
|
|
|