Bug 866789 - GC: Fix some more shell rooting hazards r=terrence
This commit is contained in:
@@ -576,10 +576,10 @@ js::GetIterator(JSContext *cx, HandleObject obj, unsigned flags, MutableHandleVa
|
||||
if (!Invoke(cx, ObjectOrNullValue(obj), method, 0, NULL, vp.address()))
|
||||
return false;
|
||||
|
||||
RawObject obj = ToObject(cx, vp);
|
||||
if (!obj)
|
||||
RawObject resultObj = ToObject(cx, vp);
|
||||
if (!resultObj)
|
||||
return false;
|
||||
vp.setObject(*obj);
|
||||
vp.setObject(*resultObj);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user