From 89f796006f4f532457d001910c6893aa0e70d559 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 30 May 2005 06:06:27 +0000 Subject: r7085: fixed a bug in ejs with setting up the arguments[] array (This used to be commit 722950c21365982ac9a62f97360b6c4a0bdd4acc) --- source4/lib/ejs/ejsParser.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/lib/ejs') 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]); } -- cgit