mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Propagate end position in all cases parsing a parenthesized expression (402386, r=mrbkap/a=schrep).
This commit is contained in:
parent
f69264fe57
commit
d510c84f8b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user