Permalink
Browse files

Add support for debugger statement

In patterns and source code.
  • Loading branch information...
1 parent d59ed60 commit d9e950f368dee942ca305e7d77e928e9d163ee66 Ryan Patterson committed Jan 24, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/jsgrep.js
View
@@ -635,6 +635,7 @@ var astIsEqual = exports.astIsEqual = function(node, pattern, config) {
// 0-child statements
case tokens.BREAK:
case tokens.CONTINUE:
+ case tokens.DEBUGGER:
return true;
break;
@@ -929,6 +930,7 @@ var forEachNode = exports.forEachNode = function(node, callback) {
// 0-child statements
case tokens.BREAK:
case tokens.CONTINUE:
+ case tokens.DEBUGGER:
break;
// Unary expressions

0 comments on commit d9e950f

Please sign in to comment.