diff --git a/js/src/jsparse.c b/js/src/jsparse.c index 6da943179a3c..443ae7ec8f65 100644 --- a/js/src/jsparse.c +++ b/js/src/jsparse.c @@ -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; }