Bug 563303 useless check of !data.index in nsContentUtils::ReparentClonedObjectToScope

r=bent
This commit is contained in:
timeless@mozdev.org 2010-05-13 11:11:24 -07:00
parent 6d30a73e66
commit 1d241c39dc

View File

@ -5698,7 +5698,9 @@ nsContentUtils::ReparentClonedObjectToScope(JSContext* cx,
while (!objectData.IsEmpty()) {
ReparentObjectData& data = objectData[objectData.Length() - 1];
if (!data.ids && !data.index) {
if (!data.ids) {
NS_ASSERTION(!data.index, "Shouldn't have index here");
// Typed arrays are special and don't need to be enumerated.
if (js_IsTypedArray(data.obj)) {
if (!js_ReparentTypedArrayToScope(cx, data.obj, scope)) {