Block statement traversal inside variable declaration issue
gyandeeps opened this issue · 1 comments
gyandeeps commented
I saw this issue working inside eslint
and it did not emit event for BlockStatement
for the following code:
Code:
var a = function() {
a++;
b++;
c++;
},
b;
I listen for 2 nodes VariableDeclaration
and BlockStatement
.
My function gets called for VariableDeclaration
but never get called for BlockStatement
.
I expect that to happen.
Is this an known issue or my expectations are wrong.
UPDATE
If I stop listening for VariableDeclaration
then its works fine and the function gets called for BlockStatement
.
gyandeeps commented
Sorry false alarm. I was accidentally modifying the ast.