Propagate end position in all cases parsing a parenthesized expression (402386, r=mrbkap/a=schrep).

This commit is contained in:
brendan@mozilla.org 2007-11-13 18:07:28 -08:00
parent f69264fe57
commit d510c84f8b

View File

@ -5830,9 +5830,9 @@ PrimaryExpr(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc,
pn = pn2;
} else {
pn->pn_type = TOK_RP;
pn->pn_pos.end = CURRENT_TOKEN(ts).pos.end;
pn->pn_kid = pn2;
}
pn->pn_pos.end = CURRENT_TOKEN(ts).pos.end;
break;
}