mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
for-in loop on proxy does not suppress properties deleted during enumeration (bug 600702, r=brendan)
This commit is contained in:
parent
ed8e6d5fcf
commit
04ee44b4e6
@ -953,7 +953,7 @@ proxy_DeleteProperty(JSContext *cx, JSObject *obj, jsid id, Value *rval, JSBool
|
||||
{
|
||||
// TODO: throwing away strict
|
||||
bool deleted;
|
||||
if (!JSProxy::delete_(cx, obj, id, &deleted))
|
||||
if (!JSProxy::delete_(cx, obj, id, &deleted) || !js_SuppressDeletedProperty(cx, obj, id))
|
||||
return false;
|
||||
rval->setBoolean(deleted);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user