mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 330951: Patch from Pawel Chmielowski to fix a regression that I introduced in bug 311515.
This commit is contained in:
parent
a254e22506
commit
cdc28d9089
@ -1061,7 +1061,7 @@ array_sort(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
ca.fval = fval;
|
||||
ca.localroot = argv + argc; /* local GC root for temporary string */
|
||||
pivotroot = argv + argc + 1; /* local GC root for pivot val */
|
||||
ok = js_HeapSort(vec, (size_t) len, pivotroot, sizeof(jsval),
|
||||
ok = js_HeapSort(vec, (size_t) newlen, pivotroot, sizeof(jsval),
|
||||
all_strings ? sort_compare_strings : sort_compare,
|
||||
&ca);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user