Bug 1346217 part 9 - Enable some assertions that were commented out a long time ago. r=till

This commit is contained in:
Jan de Mooij 2017-09-01 15:47:26 +02:00
parent a3099c6d81
commit 58c33b70d0

View File

@ -353,8 +353,10 @@ NativeObject::getChildProperty(JSContext* cx,
Shape* shape = cx->zone()->propertyTree().inlinedGetChild(cx, parent, child);
if (!shape)
return nullptr;
//MOZ_ASSERT(shape->parent == parent);
//MOZ_ASSERT_IF(parent != lastProperty(), parent == lastProperty()->parent);
MOZ_ASSERT(shape->parent == parent);
MOZ_ASSERT_IF(parent != obj->lastProperty(), parent == obj->lastProperty()->parent);
if (!obj->setLastProperty(cx, shape))
return nullptr;
return shape;