Fix regression in patch for bug 346902 (387951, r=mrbkap, a=dsicore).
git-svn-id: svn://10.0.0.236/trunk@250021 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
872835d41f
commit
4528353ed6
@ -6420,9 +6420,11 @@ js_FoldConstants(JSContext *cx, JSParseNode *pn, JSTreeContext *tc)
|
||||
pn->pn_type = TOK_RP;
|
||||
pn->pn_arity = PN_UNARY;
|
||||
pn->pn_kid = pn2;
|
||||
} else {
|
||||
PN_MOVE_NODE(pn, pn2);
|
||||
if (pn3 && pn3 != pn2)
|
||||
RecycleTree(pn3, tc);
|
||||
break;
|
||||
}
|
||||
PN_MOVE_NODE(pn, pn2);
|
||||
}
|
||||
if (!pn2 || (pn->pn_type == TOK_SEMI && !pn->pn_kid)) {
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user