remove unused i variable in default parameters transformer

This commit is contained in:
Sebastian McKenzie 2014-11-16 14:37:26 +11:00
parent a027d2b9cf
commit 0dbb24c922

View File

@ -20,7 +20,7 @@ exports.Function = function (node, parent, file, scope) {
// temporal dead zone check - here we prevent accessing of params that // temporal dead zone check - here we prevent accessing of params that
// are to the right - ie. uninitialized parameters // are to the right - ie. uninitialized parameters
_.each(ids.slice(i), function (ids, i) { _.each(ids.slice(i), function (ids) {
var check = function (node, parent) { var check = function (node, parent) {
if (!t.isIdentifier(node) || !t.isReferenced(node, parent)) return; if (!t.isIdentifier(node) || !t.isReferenced(node, parent)) return;