Bug 779393 - Fix compile error in jsiter.cpp involving --enable-more-deterministic, r=bhackett

This commit is contained in:
David Mandelin
2012-08-01 11:25:33 -07:00
parent 1c9439c7af
commit 46b3c87fe3

View File

@@ -298,7 +298,7 @@ Snapshot(JSContext *cx, JSObject *obj_, unsigned flags, AutoIdVector *props)
size_t n = props->length();
AutoIdVector tmp(cx);
if (!tmp.resizeUninitialized(n))
if (!tmp.resize(n))
return false;
if (!MergeSort(ids, n, tmp.begin(), SortComparatorIds(cx)))