don't do TCO on generators and async functions - fixes #1251
This commit is contained in:
parent
4c2c3098c3
commit
5adda836af
@ -6,6 +6,7 @@ import map from "lodash/collection/map";
|
||||
import * as t from "../../../types";
|
||||
|
||||
exports.Function = function (node, parent, scope, file) {
|
||||
if (node.generator || node.async) return;
|
||||
var tailCall = new TailCallTransformer(this, scope, file);
|
||||
tailCall.run();
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user