mirror of
https://github.com/samba-team/samba.git
synced 2025-11-16 20:23:50 +03:00
r8631: give an error on incorrect argument count
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a2266f6927
commit
ed09e19794
@@ -2059,12 +2059,11 @@ static int evalFunction(Ejs *ep, MprVar *obj, int flags)
|
||||
formalArgs = prototype->function.args;
|
||||
argNames = (char**) formalArgs->handles;
|
||||
|
||||
#if FUTURE
|
||||
if (formalArgs->used != actualArgs->used) {
|
||||
ejsError(ep, "Bad number of args. Should be %d", formalArgs->used);
|
||||
if (formalArgs->used > actualArgs->used) {
|
||||
ejsError(ep, "Bad number of args. Should be %d",
|
||||
formalArgs->used);
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Create the arguments and callee variables
|
||||
|
||||
Reference in New Issue
Block a user