Fix another node end line-numbering bug reported by Igor Bukanov on n.p.m.jseng.

This commit is contained in:
brendan%mozilla.org 2004-08-22 21:32:23 +00:00
parent 55dab83c6b
commit 13f72da5b5

View File

@ -286,6 +286,7 @@ NewBinary(JSContext *cx, JSTokenType tt,
left->pn_type == TOK_NUMBER &&
right->pn_type == TOK_NUMBER) {
left->pn_dval += right->pn_dval;
left->pn_pos.end = right->pn_pos.end;
RecycleTree(right, tc);
return left;
}