Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Oct 3, 2019
1 parent 3197c4d commit 6d78f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/lval.js
Expand Up @@ -472,7 +472,7 @@ export default class LValParser extends NodeUtils {
checkCommaAfterRest(close: TokenType): void {
if (this.match(tt.comma)) {
// TODO: Use lookaheadCharCode after that https://github.com/babel/babel/pull/10371 is merged
if (this.lookahead().type == close) {
if (this.lookahead().type === close) {
this.raiseTrailingCommaAfterRest(this.state.start);
} else {
this.raiseRestNotLast(this.state.start);
Expand Down

0 comments on commit 6d78f91

Please sign in to comment.