Skip to content

Commit

Permalink
Add FlowIgnore comment for BigInt
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Dec 7, 2019
1 parent 99e066a commit 4ead529
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel-parser/src/plugins/estree.js
Expand Up @@ -35,6 +35,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>

estreeParseBigIntLiteral(value: any): N.Node {
// https://github.com/estree/estree/blob/master/es2020.md#bigintliteral
// $FlowIgnore
const bigInt = typeof BigInt !== "undefined" ? BigInt(value) : null;
const node = this.estreeParseLiteral(bigInt);
node.bigint = String(node.value || value);
Expand Down

0 comments on commit 4ead529

Please sign in to comment.