Bug 488690 - "Assertion failure: dn->pn_defn, at ../jsemit.cpp" (r=mrbkap).

This commit is contained in:
Brendan Eich 2009-04-20 15:51:27 -07:00
Родитель 5261542e7a
Коммит 217324444b
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -6138,7 +6138,9 @@ CompExprTransplanter::transplant(JSParseNode *pn)
if (!ale) if (!ale)
return NULL; return NULL;
if (!dn->isPlaceholder()) { if (dn->pn_pos >= root->pn_pos) {
tc->parent->lexdeps.remove(tc->compiler, atom);
} else {
JSDefinition *dn2 = (JSDefinition *) JSDefinition *dn2 = (JSDefinition *)
NewNameNode(tc->compiler->context, TS(tc->compiler), dn->pn_atom, tc); NewNameNode(tc->compiler->context, TS(tc->compiler), dn->pn_atom, tc);
if (!dn2) if (!dn2)
@ -6164,9 +6166,6 @@ CompExprTransplanter::transplant(JSParseNode *pn)
} }
ALE_SET_DEFN(ale, dn); ALE_SET_DEFN(ale, dn);
if (dn->pn_pos >= root->pn_pos)
tc->parent->lexdeps.remove(tc->compiler, atom);
} }
} }
} }