diff --git a/js/src/jsparse.cpp b/js/src/jsparse.cpp index 104328cc5af..23052e6f88f 100644 --- a/js/src/jsparse.cpp +++ b/js/src/jsparse.cpp @@ -6147,7 +6147,7 @@ CompExprTransplanter::transplant(JSParseNode *pn) 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;