зеркало из https://github.com/mozilla/gecko-dev.git
Bug 488690 - "Assertion failure: dn->pn_defn, at ../jsemit.cpp" (r=mrbkap).
This commit is contained in:
Родитель
5261542e7a
Коммит
217324444b
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче