Bug 1310744: Revert "
Bug 1300193: Make existing assertion that no longer holds more flexible. r=jandem", but keep the test. r?nbp
This now holds, as it should. The test is superseded by the one in this bug, but
it's harmless.
MozReview-Commit-ID: G7HHZLIIr6Y
--- a/js/src/vm/NativeObject-inl.h
+++ b/js/src/vm/NativeObject-inl.h
@@ -158,17 +158,17 @@ NativeObject::extendDenseElements(Exclus
MOZ_ASSERT(!denseElementsAreFrozen());
/*
* Don't grow elements for non-extensible objects or watched objects. Dense
* elements can be added/written with no extensible or watchpoint checks as
* long as there is capacity for them.
*/
if (!nonProxyIsExtensible() || watched()) {
- MOZ_ASSERT(getDenseCapacity() == 0 || (!watched() && getElementsHeader()->isFrozen()));
+ MOZ_ASSERT(getDenseCapacity() == 0);
return DenseElementResult::Incomplete;
}
/*
* Don't grow elements for objects which already have sparse indexes.
* This avoids needing to count non-hole elements in willBeSparseElements
* every time a new index is added.
*/