Bug 1191529 - Remove JSIdArray and AutoIdArray and replace with Rooted<IdVector>; r=mccr8, r=jonco

* * *
imported patch 2_remove_AutoIdArray_gk
This commit is contained in:
Terrence Cole
2015-08-05 11:02:00 -07:00
parent fe4e351415
commit 19022b5f4a
18 changed files with 69 additions and 185 deletions

View File

@@ -729,8 +729,8 @@ JavaScriptShared::Wrap(JSContext* cx, HandleObject aObj, InfallibleTArray<CpowEn
if (!aObj)
return true;
AutoIdArray ids(cx, JS_Enumerate(cx, aObj));
if (!ids)
Rooted<IdVector> ids(cx, IdVector(cx));
if (!JS_Enumerate(cx, aObj, &ids))
return false;
RootedId id(cx);