diff --git a/lib/6to5/transformation/transformers/es6-computed-property-names.js b/lib/6to5/transformation/transformers/es6-computed-property-names.js index f84a522086..c6f85be62f 100644 --- a/lib/6to5/transformation/transformers/es6-computed-property-names.js +++ b/lib/6to5/transformation/transformers/es6-computed-property-names.js @@ -56,14 +56,15 @@ var loose = function (node, body, objId) { var spec = function (node, body, objId, initProps, file) { var props = node.properties; + var prop, key; // normalise key for (var i in props) { - var prop = props[i]; + prop = props[i]; if (prop.kind !== "init") continue; - var key = prop.key; + key = prop.key; if (!prop.computed && t.isIdentifier(key)) { prop.key = t.literal(key.name);