rename NumberLiteral to NumericLiteral and RegexLiteral to RegExpLiteral
This commit is contained in:
@@ -3,7 +3,7 @@ export default function ({ types: t }) {
|
||||
visitor: {
|
||||
ReferencedIdentifier(path) {
|
||||
if (path.node.name === "undefined") {
|
||||
path.replaceWith(t.unaryExpression("void", t.numberLiteral(0), true));
|
||||
path.replaceWith(t.unaryExpression("void", t.numericLiteral(0), true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user