Merge pull request #2910 from babel/revert-2858-i-2835

Revert 5508f4de567ec59b2bc85f371deddd912be138ef
This commit is contained in:
Henry Zhu 2015-11-07 18:15:07 -05:00
commit 264c207cb9

View File

@ -146,10 +146,6 @@ function getOuterFnExpr(funPath) {
var node = funPath.node;
t.assertFunction(node);
if (!node.id) {
node.id = funPath.scope.parent.generateUidIdentifier("callee");
}
if (node.generator && // Non-generator functions don't need to be marked.
t.isFunctionDeclaration(node)) {
var pp = funPath.findParent(function (path) {
@ -175,7 +171,9 @@ function getOuterFnExpr(funPath) {
);
}
return node.id;
return node.id || (
node.id = funPath.scope.parent.generateUidIdentifier("callee")
);
}
function getRuntimeMarkDecl(blockPath) {