diff --git a/escope.js b/escope.js index a1427a0..c051920 100644 --- a/escope.js +++ b/escope.js @@ -948,7 +948,7 @@ case Syntax.FunctionDeclaration: // FunctionDeclaration name is defined in upper scope - currentScope.upper.__define(node.id, { + currentScope.upper.variableScope.__define(node.id, { type: Variable.FunctionName, name: node.id, node: node diff --git a/package.json b/package.json index 8a55cbf..32eb220 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "jsdoc": "~3.3.0-alpha2", "gulp-mocha": "~0.3.0", "gulp-jshint": "~1.3.4", - "gulp": "~3.4.1" + "gulp": "~3.5.2" }, "licenses": [ {