Skip to content

Commit

Permalink
Update packages/babel-parser/src/plugins/typescript/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
  • Loading branch information
fedeci and sosukesuzuki committed Apr 6, 2021
1 parent 264bc6a commit 22b1c43
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/babel-parser/src/plugins/typescript/index.js
Expand Up @@ -2784,7 +2784,6 @@ export default (superClass: Class<Parser>): Class<Parser> =>
if (this.lookaheadCharCode() === close) {
if (!this.state.isDeclareContext) {
this.raiseTrailingCommaAfterRest(this.state.start);
return;
}
this.eat(tt.comma);
} else {
Expand Down

0 comments on commit 22b1c43

Please sign in to comment.