fix default parameters closure scope

This commit is contained in:
Sebastian McKenzie 2015-01-14 18:46:36 +11:00
parent f5f17f0ccb
commit a3b814a897

View File

@ -45,7 +45,7 @@ exports.Function = function (node, parent, file, scope) {
}
// we're accessing a variable that's already defined within this function
var has = scope.get(param.name);
var has = scope.get(param.name, true);
if (has && node.params.indexOf(has) < 0) {
iife = true;
}