1
Fork 0

Do not consume semicolon twice while parsing local statement

This commit is contained in:
Seiichi Uchida 2018-06-19 14:04:16 +09:00
parent 5230979794
commit cafe9d0ed4

View file

@ -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])?;
}
}
_ => {}