Do not consume semicolon twice while parsing local statement
This commit is contained in:
parent
5230979794
commit
cafe9d0ed4
1 changed files with 1 additions and 1 deletions
|
@ -4700,7 +4700,7 @@ impl<'a> Parser<'a> {
|
|||
if macro_legacy_warnings && self.token != token::Semi {
|
||||
self.warn_missing_semicolon();
|
||||
} else {
|
||||
self.expect_one_of(&[token::Semi], &[])?;
|
||||
self.expect_one_of(&[], &[token::Semi])?;
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue