Functions of fixed number of args are special-cased only for 3 or less args.
This commit is contained in:
parent
2ca84aa01e
commit
9d95a2b21d
|
@ -63,7 +63,7 @@ mp_obj_t fun_native_call(mp_obj_t self_in, uint n_args, uint n_kw, const mp_obj_
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
} else if (self->n_args_min == self->n_args_max) {
|
} else if (self->n_args_min <= 3 && self->n_args_min == self->n_args_max) {
|
||||||
// function requires a fixed number of arguments
|
// function requires a fixed number of arguments
|
||||||
|
|
||||||
// dispatch function call
|
// dispatch function call
|
||||||
|
|
Loading…
Reference in New Issue