Skip to content

Commit

Permalink
No need to clean BigIntLiteral anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Jun 13, 2020
1 parent faa644c commit 83bbfd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/language-js/clean.js
Expand Up @@ -80,7 +80,7 @@ function clean(ast, newObj, parent) {

// We change {'key': value} into {key: value}.
// And {key: value} into {'key': value}.
// Also for number keys.
// Also for (some) number keys.
if (
(ast.type === "Property" ||
ast.type === "ObjectProperty" ||
Expand All @@ -92,7 +92,6 @@ function clean(ast, newObj, parent) {
ast.key &&
(ast.key.type === "Literal" ||
ast.key.type === "NumericLiteral" ||
ast.key.type === "BigIntLiteral" ||
ast.key.type === "StringLiteral" ||
ast.key.type === "Identifier")
) {
Expand Down

0 comments on commit 83bbfd3

Please sign in to comment.