summaryrefslogtreecommitdiffstats
path: root/js/src/vm/Iteration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/vm/Iteration.cpp')
-rw-r--r--js/src/vm/Iteration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/vm/Iteration.cpp b/js/src/vm/Iteration.cpp
index 304054e0ec..d02f9de8cf 100644
--- a/js/src/vm/Iteration.cpp
+++ b/js/src/vm/Iteration.cpp
@@ -829,7 +829,7 @@ static PropertyIteratorObject* CreatePropertyIterator(
bool supportsIndices, PropertyIndexVector* indices,
uint32_t cacheableProtoChainLength) {
MOZ_ASSERT_IF(indices, supportsIndices);
- if (props.length() > NativeIterator::PropCountLimit) {
+ if (props.length() >= NativeIterator::PropCountLimit) {
ReportAllocationOverflow(cx);
return nullptr;
}