bug 300858: Make sure to update all_strings so that we don't try to treat a JSVAL_HOLE as a JSString in sort_compare_strings. Instead, arrays composed of strings and holes should go through sort_compare. r+a=brendan

This commit is contained in:
mrbkap%gmail.com 2005-07-20 04:06:51 +00:00
parent 3852830c73
commit 562ca693d8

View File

@ -921,6 +921,7 @@ array_sort(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
goto out;
if (!idexists) {
vec[i] = JSVAL_HOLE;
all_strings = JS_FALSE;
continue;
}
newlen++;