Fix the spans of catch blocks to include the do
This commit is contained in:
parent
b80e946101
commit
53884705cb
1 changed files with 1 additions and 1 deletions
|
|
@ -2243,9 +2243,9 @@ impl<'a> Parser<'a> {
|
|||
attrs);
|
||||
}
|
||||
if self.is_catch_expr() {
|
||||
let lo = self.span;
|
||||
assert!(self.eat_keyword(keywords::Do));
|
||||
assert!(self.eat_keyword(keywords::Catch));
|
||||
let lo = self.prev_span;
|
||||
return self.parse_catch_expr(lo, attrs);
|
||||
}
|
||||
if self.eat_keyword(keywords::Return) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue