зеркало из https://github.com/mozilla/gecko-dev.git
Fixed bug 114508: delete can now delete fields of objects put into scope by with statements
This commit is contained in:
Родитель
d0e0714fb4
Коммит
1167a288a7
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче