Skip to content

Commit

Permalink
Quieted unmapped node message
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohnson committed Sep 28, 2017
1 parent 7e7a660 commit 1b5e466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babylon-to-espree/toAST.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var astTransformVisitor = {
enter (path) {
var node = path.node;
if (node.start == null || node.end == null || node.loc == null) {
console.log("Unmapped node of type", node.type, " at ", path.getPathLocation());
//console.log("Unmapped node of type", node.type, " at ", path.getPathLocation());
node.start = 0; node.end = 1;
node.loc = { start: { line: 1, column: 0 }, end: { line: 1, column: 1 } };
}
Expand Down

0 comments on commit 1b5e466

Please sign in to comment.