зеркало из https://github.com/mozilla/gecko-dev.git
Bug 419018 - Fix silly crash in slowarray_enumerate, patch by mrbkap, r=shaver, a1.9=mconnor
This commit is contained in:
Родитель
b9ec25ac89
Коммит
4de7e60d7d
|
@ -848,7 +848,7 @@ slowarray_enumerate(JSContext *cx, JSObject *obj, JSIterateOp enum_op,
|
|||
jsval *statep, jsid *idp)
|
||||
{
|
||||
/* Are we continuing an enumeration that started when we were dense? */
|
||||
if (JSVAL_IS_BOOLEAN(*statep)) {
|
||||
if (enum_op != JSENUMERATE_INIT && JSVAL_IS_BOOLEAN(*statep)) {
|
||||
jsid lastIndex = INT_TO_JSID(JSVAL_TO_BOOLEAN(*statep));
|
||||
|
||||
/* Replace our enumeration state with a native one. */
|
||||
|
|
Загрузка…
Ссылка в новой задаче