From 904a72fb3a25409e1dec46a90829afcf8a5cfde8 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Tue, 10 Feb 2015 17:18:46 +0200 Subject: [PATCH] Fix rename not establishing binding. --- lib/6to5/traversal/scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/traversal/scope.js b/lib/6to5/traversal/scope.js index f6d9c4eab2..1b3ae55158 100644 --- a/lib/6to5/traversal/scope.js +++ b/lib/6to5/traversal/scope.js @@ -155,7 +155,7 @@ Scope.prototype.rename = function (oldName, newName) { var scope = info.scope; this.clearOwnBinding(oldName); - scope.bindings[newName] = binding; + scope.bindings[newName] = info; binding.name = newName;