only check declarations in let scoping reference check

This commit is contained in:
Sebastian McKenzie
2015-01-06 10:36:49 +11:00
parent 348ad2e25c
commit 64f9f4dff5

View File

@@ -376,7 +376,7 @@ LetScoping.prototype.getLetReferences = function () {
// this scope has a variable with the same name so it couldn't belong
// to our let scope
if (scope.hasOwn(node.name)) return;
if (scope.hasOwn(node.name, true)) return;
closurify = true;