| Index: src/ic/ic.cc
|
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc
|
| index 487a615f7155625f12d56feffce4bd32bf29fe3f..cc0459e65552715efab27e3afc620b7b0a6304b0 100644
|
| --- a/src/ic/ic.cc
|
| +++ b/src/ic/ic.cc
|
| @@ -1732,8 +1732,10 @@ Handle<Code> StoreIC::CompileHandler(LookupIterator* lookup,
|
| return compiler.CompileStoreCallback(receiver, lookup->name(),
|
| call_optimization);
|
| }
|
| + int expected_arguments = function->shared()->formal_parameter_count();
|
| return compiler.CompileStoreViaSetter(receiver, lookup->name(),
|
| - Handle<JSFunction>::cast(setter));
|
| + lookup->GetAccessorIndex(),
|
| + expected_arguments);
|
| }
|
| break;
|
| }
|
|
|