From 64f9f4dff5f6de9600a672325080147cac334706 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 6 Jan 2015 10:36:49 +1100 Subject: [PATCH] only check declarations in let scoping reference check --- lib/6to5/transformation/transformers/es6-let-scoping.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/transformation/transformers/es6-let-scoping.js b/lib/6to5/transformation/transformers/es6-let-scoping.js index 75e17812e8..44151d58b8 100644 --- a/lib/6to5/transformation/transformers/es6-let-scoping.js +++ b/lib/6to5/transformation/transformers/es6-let-scoping.js @@ -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;