From 313e932e7c08ad239a97095f05a7416f6044763a Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 14 Jan 2015 10:11:41 +1100 Subject: [PATCH] fix linting errors --- .../transformers/es6-computed-property-names.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);