Bug 488963 - "Assertion failure: cg->lexdeps.lookup(atom), at ../jsemit.cpp" (tachyonal r=mrbkap).
authorBrendan Eich <brendan@mozilla.org>
Mon, 20 Apr 2009 18:46:46 -0700
changeset 27578 e0e3d87da9add6b0ef434d489778346a4a9ed36b
parent 27577 5d0af2376447781606f9870022955c395f6eb779
child 27579 30ac20416be4c46eb323f0f4a6ffe1c840c85d93
child 27634 89d209a23a3abae5bf33481517b856300f7d5c61
push id6623
push userrsayre@mozilla.com
push dateTue, 21 Apr 2009 18:35:23 +0000
treeherdermozilla-central@30ac20416be4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs488963
milestone1.9.2a1pre
Bug 488963 - "Assertion failure: cg->lexdeps.lookup(atom), at ../jsemit.cpp" (tachyonal r=mrbkap).
js/src/jsparse.cpp
--- a/js/src/jsparse.cpp
+++ b/js/src/jsparse.cpp
@@ -6142,17 +6142,17 @@ CompExprTransplanter::transplant(JSParse
                         tc->parent->lexdeps.remove(tc->compiler, atom);
                     } else {
                         JSDefinition *dn2 = (JSDefinition *)
                             NewNameNode(tc->compiler->context, TS(tc->compiler), dn->pn_atom, tc);
                         if (!dn2)
                             return NULL;
 
                         dn2->pn_type = dn->pn_type;
-                        dn2->pn_pos = dn->pn_pos;
+                        dn2->pn_pos = root->pn_pos;
                         dn2->pn_defn = true;
                         dn2->pn_dflags |= PND_FORWARD | PND_PLACEHOLDER;
 
                         JSParseNode **pnup = &dn->dn_uses;
                         JSParseNode *pnu;
                         while ((pnu = *pnup) != NULL && pnu->pn_pos >= root->pn_pos) {
                             pnu->pn_lexdef = dn2;
                             dn2->pn_dflags |= pnu->pn_dflags & (PND_ASSIGNED | PND_FUNARG);