Fix named FunctionExpression scoping issue.

This commit is contained in:
keijokapp
2016-02-29 16:07:59 +02:00
parent 1271d2cd52
commit 105299f26d
3 changed files with 28 additions and 15 deletions

View File

@@ -4,7 +4,9 @@ var foo = function () {
console.log(bar);
});
return function bar() {
function bar() {
return ref.apply(this, arguments);
};
}
return bar;
}();