diff options
-rw-r--r-- | source4/lib/appweb/ejs/ejsParser.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |