зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1096054 - Uninitialised value use in Interpret(JSContext*, js::RunState&). r=jwalden.
--HG-- extra : rebase_source : 49b1ebd5750bf45cf59479c5f8aae06468b223a0
This commit is contained in:
Родитель
a59be6e03f
Коммит
486e1c8571
|
@ -1274,8 +1274,7 @@ NPObjWrapper_DelProperty(JSContext *cx, JS::Handle<JSObject*> obj, JS::Handle<js
|
|||
}
|
||||
}
|
||||
|
||||
if (!npobj->_class->removeProperty(npobj, identifier))
|
||||
*succeeded = false;
|
||||
*succeeded = npobj->_class->removeProperty(npobj, identifier);
|
||||
|
||||
return ReportExceptionIfPending(cx);
|
||||
}
|
||||
|
|
|
@ -2311,7 +2311,7 @@ baseops::DeleteGeneric(JSContext *cx, HandleNativeObject obj, HandleId id, bool
|
|||
|
||||
if (!CallJSDeletePropertyOp(cx, obj->getClass()->delProperty, obj, id, succeeded))
|
||||
return false;
|
||||
if (!succeeded)
|
||||
if (!*succeeded)
|
||||
return true;
|
||||
|
||||
NativeObject *nobj = &obj->as<NativeObject>();
|
||||
|
@ -2330,7 +2330,7 @@ baseops::DeleteGeneric(JSContext *cx, HandleNativeObject obj, HandleId id, bool
|
|||
RootedId propid(cx, shape->propid());
|
||||
if (!CallJSDeletePropertyOp(cx, obj->getClass()->delProperty, obj, propid, succeeded))
|
||||
return false;
|
||||
if (!succeeded)
|
||||
if (!*succeeded)
|
||||
return true;
|
||||
|
||||
return obj->removeProperty(cx, id) && SuppressDeletedProperty(cx, obj, id);
|
||||
|
|
Загрузка…
Ссылка в новой задаче