Parser - Fixed function call parsing

This commit is contained in:
Emmanuel BENOîT 2023-01-02 20:06:36 +01:00
parent 360ec57914
commit 5d1d3bd0a4

View file

@ -638,7 +638,7 @@ impl Parser {
));
}
arguments.push(self.parse_expression()?);
if self.expect(&[TokenType::Comma]).is_some() {
if self.expect(&[TokenType::Comma]).is_none() {
break;
}
}