File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,6 @@ ObjectPtr DartEntry::ResolveCallable(const Array& arguments,
215
215
const ArgumentsDescriptor args_desc (arguments_descriptor);
216
216
const intptr_t receiver_index = args_desc.FirstArgIndex ();
217
217
const intptr_t type_args_len = args_desc.TypeArgsLen ();
218
- const intptr_t args_count = args_desc.Count ();
219
- const intptr_t named_args_count = args_desc.NamedCount ();
220
218
const auto & getter_name = Symbols::GetCall ();
221
219
222
220
auto & instance = Instance::Handle (zone);
@@ -228,8 +226,7 @@ ObjectPtr DartEntry::ResolveCallable(const Array& arguments,
228
226
instance ^= arguments.At (receiver_index)) {
229
227
// The instance is a callable, so check that its function is compatible.
230
228
if (instance.IsCallable (&function)) {
231
- bool matches = function.AreValidArgumentCounts (type_args_len, args_count,
232
- named_args_count, nullptr );
229
+ bool matches = function.AreValidArguments (args_desc, nullptr );
233
230
234
231
if (matches && type_args_len > 0 && function.IsClosureFunction ()) {
235
232
// Though the closure function is generic, the closure itself may
You can’t perform that action at this time.
0 commit comments