Bug 1530958 - Fix an issue with native groups for unboxed objects. r=jandem

--HG--
extra : amend_source : 3d3dc1b7604345304db269b8289aa6a610aa7d80
This commit is contained in:
Brian Hackett 2019-03-06 08:29:26 +01:00
parent d51a0249ac
commit 67fc2c3079

View File

@ -716,12 +716,6 @@ bool UnboxedLayout::makeNativeGroup(JSContext* cx, ObjectGroup* group) {
if (nativeGroup->unknownProperties(sweepNative)) {
break;
}
HeapTypeSet* nativeProperty =
nativeGroup->maybeGetProperty(sweepNative, id);
if (nativeProperty && nativeProperty->canSetDefinite(i)) {
nativeProperty->setDefinite(i);
}
}
} else {
// If we skip, though, the new group had better agree.