Fixed bug 114508: delete can now delete fields of objects put into scope by with statements
git-svn-id: svn://10.0.0.236/trunk@2381 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1855,11 +1855,9 @@ js_Interpret(JSContext *cx, jsval *result)
|
||||
rval = JSVAL_TRUE;
|
||||
if (prop) {
|
||||
OBJ_DROP_PROPERTY(cx, obj2, prop);
|
||||
if (obj2 == obj) {
|
||||
ok = OBJ_DELETE_PROPERTY(cx, obj, id, &rval);
|
||||
if (!ok)
|
||||
goto out;
|
||||
}
|
||||
ok = OBJ_DELETE_PROPERTY(cx, obj, id, &rval);
|
||||
if (!ok)
|
||||
goto out;
|
||||
}
|
||||
PUSH_OPND(rval);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user