diff --git a/js/src/jsarray.c b/js/src/jsarray.c index acb4633197b3..36cd69ab5a7a 100644 --- a/js/src/jsarray.c +++ b/js/src/jsarray.c @@ -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++;