summaryrefslogtreecommitdiff
path: root/source4/lib/appweb/ejs/ejsParser.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/appweb/ejs/ejsParser.c')
-rw-r--r--source4/lib/appweb/ejs/ejsParser.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/lib/appweb/ejs/ejsParser.c b/source4/lib/appweb/ejs/ejsParser.c
index e7c44f4d6c..1f110e7ac4 100644
--- a/source4/lib/appweb/ejs/ejsParser.c
+++ b/source4/lib/appweb/ejs/ejsParser.c
@@ -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