Bug 501834 - Regression on js1_5/Regress/regress-312588.js crash [@ JS_HashTableRawLookup]. r=jwalden
This commit is contained in:
@@ -1552,7 +1552,11 @@ array_toString_sub(JSContext *cx, JSObject *obj, JSBool locale,
|
|||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
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;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user