hoist uids to their parent function

This commit is contained in:
Sebastian McKenzie 2015-03-14 03:58:02 +11:00
parent 547ecc2f73
commit 056b7fc634

View File

@ -133,7 +133,7 @@ export default class Scope {
uid = this._generateUid(name, i); uid = this._generateUid(name, i);
i++; i++;
} while (this.hasBinding(uid) || this.hasGlobal(uid) || this.hasUid(uid)); } while (this.hasBinding(uid) || this.hasGlobal(uid) || this.hasUid(uid));
this.uids[uid] = true; this.getFunctionParent().uids[uid] = true;
return uid; return uid;
} }