Bug 1624236 - 1624236: Removed 'else after 'break' in js/src/vm/Shape.cpp r=jandem

Differential Revision: https://phabricator.services.mozilla.com/D68113

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sydney 2020-03-25 09:07:31 +00:00
parent 9cb24081dd
commit d1bfb4ded2

View File

@ -1427,11 +1427,10 @@ bool NativeObject::rollbackProperties(JSContext* cx, HandleNativeObject obj,
if (obj->lastProperty()->isEmptyShape()) {
MOZ_ASSERT(slotSpan == 0);
break;
} else {
uint32_t slot = obj->lastProperty()->slot();
if (slot < slotSpan) {
break;
}
}
uint32_t slot = obj->lastProperty()->slot();
if (slot < slotSpan) {
break;
}
if (!NativeObject::removeProperty(cx, obj, obj->lastProperty()->propid())) {
return false;