escomplex-ast-moz
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "escomplex-ast-moz", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Mozilla-format AST walker for escomplex.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/philbooth/escomplex-ast-moz", |
@@ -22,2 +22,3 @@ /*globals exports, require */ | ||
check.verifyFunction(callbacks.createScope, 'Invalid createScope callback'); | ||
check.verifyFunction(callbacks.popScope, 'Invalid popScope callback'); | ||
@@ -48,2 +49,6 @@ syntaxes = syntaxDefinitions.get(settings); | ||
visitChildren(node); | ||
if (syntax.newScope) { | ||
callbacks.popScope(); | ||
} | ||
} | ||
@@ -50,0 +55,0 @@ } |
21804
673