oxc/crates/oxc_parser
Dunqing ef82c78a72 fix(parser): trailing comma is not allowed in ParenthesizedExpression (#3885)
close: #3878

The implementation is copied from `SeparatedList`'s `print_list`.
```diff
    fn parse_list(&mut self, p: &mut ParserImpl<'a>) -> Result<()> {
        p.expect(self.open())?;

        let mut first = true;

        while !p.at(self.close()) && !p.at(Kind::Eof) {
            if first {
                first = false;
            } else {
                p.expect(self.separator())?;
-                if p.at(self.close()) {
-                    break;
-               }
            }

            self.parse_element(p)?;
        }

        p.expect(self.close())?;
        Ok(())
    }
```
2024-06-24 14:56:32 +00:00
..
examples chore: improve some format by running cargo +nightly fmt 2024-06-19 00:48:30 +08:00
src fix(parser): trailing comma is not allowed in ParenthesizedExpression (#3885) 2024-06-24 14:56:32 +00:00
Cargo.toml Release crates v0.15.0 (#3743) 2024-06-19 01:15:55 +08:00
CHANGELOG.md Release crates v0.15.0 (#3743) 2024-06-19 01:15:55 +08:00