Bug 900979 - Change JS_DeleteProperty APIs to use a boolean out param rather than a value r=waldo r=bz
This commit is contained in:
@@ -284,15 +284,9 @@ JavaScriptChild::AnswerDelete(const ObjectId &objId, const nsString &id, ReturnS
|
||||
if (!convertGeckoStringToId(cx, id, &internedId))
|
||||
return fail(cx, rs);
|
||||
|
||||
RootedValue v(cx);
|
||||
if (!JS_DeletePropertyById2(cx, obj, internedId, &v))
|
||||
if (!JS_DeletePropertyById2(cx, obj, internedId, success))
|
||||
return fail(cx, rs);
|
||||
|
||||
JSBool b;
|
||||
if (!JS_ValueToBoolean(cx, v, &b))
|
||||
return fail(cx, rs);
|
||||
*success = !!b;
|
||||
|
||||
return ok(rs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user