From 56c868efee36b584edef4aeec3e09ae937e3f807 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 13 Feb 2015 18:27:53 +1100 Subject: [PATCH] fix incorrect generateUid references in File --- lib/6to5/transformation/file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/6to5/transformation/file.js b/lib/6to5/transformation/file.js index aafe1399ad..b20d46a9fc 100644 --- a/lib/6to5/transformation/file.js +++ b/lib/6to5/transformation/file.js @@ -278,7 +278,7 @@ File.prototype.addImport = function (source, name) { var id = this.dynamicImportIds[name]; if (!id) { - id = this.dynamicImportIds[name] = this.generateUidIdentifier(name); + id = this.dynamicImportIds[name] = this.scope.generateUidIdentifier(name); var specifiers = [t.importSpecifier(t.identifier("default"), id)]; var declar = t.importDeclaration(specifiers, t.literal(source)); @@ -312,7 +312,7 @@ File.prototype.addHelper = function (name) { } else { var ref = util.template(name); ref._compact = true; - var uid = this.generateUidIdentifier(name); + var uid = this.scope.generateUidIdentifier(name); this.scope.push({ key: name, id: uid,