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: Huáng Jùnliàng <jlhwung@gmail.com>
  • Loading branch information
2 people authored and nicolo-ribaudo committed Feb 21, 2021
1 parent 524c5ef commit c658d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/plugins/typescript/index.js
Expand Up @@ -797,7 +797,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
// $FlowIgnore
node.abstract = !!abstract;
if (abstract) this.next();
this.expect(tt._new);
this.next(); // eat `new`
}
this.tsFillSignature(tt.arrow, node);
return this.finishNode(node, type);
Expand Down

0 comments on commit c658d09

Please sign in to comment.