зеркало из https://github.com/mozilla/pjs.git
Bug 501834 - Regression on js1_5/Regress/regress-312588.js crash [@ JS_HashTableRawLookup]. r=jwalden
This commit is contained in:
Родитель
8e530cf233
Коммит
ba3d2d4613
|
@ -1552,7 +1552,11 @@ array_toString_sub(JSContext *cx, JSObject *obj, JSBool locale,
|
|||
goto done;
|
||||
|
||||
done:
|
||||
JS_HashTableRawRemove(table, hep, he);
|
||||
/*
|
||||
* It is possible that 'hep' may have been invalidated by subsequent
|
||||
* RawAdd/Remove. Hence, 'RawRemove' must not be used.
|
||||
*/
|
||||
JS_HashTableRemove(table, obj);
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче