From 056b7fc63463c40e67b5522980a2e6a9dad176d2 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 14 Mar 2015 03:58:02 +1100 Subject: [PATCH] hoist uids to their parent function --- src/babel/traversal/scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/babel/traversal/scope.js b/src/babel/traversal/scope.js index fc9fd8dfcb..4f4619add1 100644 --- a/src/babel/traversal/scope.js +++ b/src/babel/traversal/scope.js @@ -133,7 +133,7 @@ export default class Scope { uid = this._generateUid(name, i); i++; } while (this.hasBinding(uid) || this.hasGlobal(uid) || this.hasUid(uid)); - this.uids[uid] = true; + this.getFunctionParent().uids[uid] = true; return uid; }