Fix 502630 (r=Waldo).

This commit is contained in:
Brendan Eich
2009-07-16 13:16:27 -07:00
parent 6de2e0a1e6
commit 7d2cabeb24
3 changed files with 3 additions and 2 deletions

View File

@@ -1094,6 +1094,7 @@ JSAtomList::add(JSCompiler *jsc, JSAtom *atom, AddHow how)
* with the given key.
*/
if (how == HOIST && ale->entry.next) {
JS_ASSERT(*hep == &ale->entry);
*hep = ale->entry.next;
ale->entry.next = NULL;
do {