From 9aa3c44f70e1102be64c503da43718b2c187dde3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 2 Nov 2005 00:59:01 +0000 Subject: r11456: fixed a ejs parser bug for delete() statements (This used to be commit b8694c58f528d9da66cd623076282caece39d8a7) --- source4/lib/appweb/ejs/ejsParser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/lib/appweb/ejs/ejsParser.c b/source4/lib/appweb/ejs/ejsParser.c index da7b544c90..da922a5728 100644 --- a/source4/lib/appweb/ejs/ejsParser.c +++ b/source4/lib/appweb/ejs/ejsParser.c @@ -312,7 +312,9 @@ static int parseStmt(Ejs *ep, int state, int flags) flags | EJS_FLAGS_DELETE) != EJS_STATE_EXPR_DONE) { goto error; } - mprDeleteProperty(ep->currentObj, ep->currentProperty->name); + if (flags & EJS_FLAGS_EXE) { + mprDeleteProperty(ep->currentObj, ep->currentProperty->name); + } done++; break; -- cgit