fix default parameters closure scope
This commit is contained in:
parent
f5f17f0ccb
commit
a3b814a897
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user