From 117203010aa7aba9e6c131af7b061df14dd4bcf5 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 28 Jan 2015 14:39:46 +1100 Subject: [PATCH] don't stop block variable scope finding on first hit --- lib/6to5/traverse/scope.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/6to5/traverse/scope.js b/lib/6to5/traverse/scope.js index deb8e06099..9b6f1fc8d0 100644 --- a/lib/6to5/traverse/scope.js +++ b/lib/6to5/traverse/scope.js @@ -170,9 +170,8 @@ var blockVariableVisitor = { enter: function (node, parent, scope, context, add) { if (t.isBlockScoped(node)) { add(node, false, true); - context.stop(); } else if (t.isScope(node)) { - context.skip(); + context.stop(); } } };