Bug 501834 - Regression on js1_5/Regress/regress-312588.js crash [@ JS_HashTableRawLookup]. r=jwalden

This commit is contained in:
Luke Wagner
2009-07-06 13:02:43 -07:00
parent 879ea4d7ca
commit b6863d4b34

View File

@@ -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;
} }