1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r11456: fixed a ejs parser bug for delete() statements

This commit is contained in:
Andrew Tridgell 2005-11-02 00:59:01 +00:00 committed by Gerald (Jerry) Carter
parent c0ba414a38
commit b8694c58f5

View File

@ -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;