зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b49257c1eb
Коммит
c89e210546
|
@ -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++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче