add block to for loop scope - fixes #538

This commit is contained in:
Sebastian McKenzie
2015-01-20 16:48:41 +11:00
parent 031bda61cc
commit 26cb5d5a65

View File

@@ -139,6 +139,8 @@ Scope.prototype.getInfo = function () {
var node = block[key];
if (t.isBlockScoped(node)) add(node);
});
block = block.body;
}
// Program, BlockStatement - let variables