don't do TCO on generators and async functions - fixes #1251

This commit is contained in:
Sebastian McKenzie 2015-04-13 09:21:59 -07:00
parent 4c2c3098c3
commit 5adda836af

View File

@ -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();
};