diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ejs/ejsParser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ejs/ejsParser.c b/source4/lib/ejs/ejsParser.c index f9335ec004..d42d66bcf5 100644 --- a/source4/lib/ejs/ejsParser.c +++ b/source4/lib/ejs/ejsParser.c @@ -2069,6 +2069,8 @@ static int evalFunction(Ejs *ep, MprVar *obj, int flags) */ for (i = 0; i < formalArgs->used; i++) { mprCreateProperty(ep->local, argNames[i], argValues[i]); + } + for (i = 0; i < actualArgs->used; i++) { mprItoa(i, buf, sizeof(buf)); mprCreateProperty(&arguments, buf, argValues[i]); } |