diff --git a/src/babel/transformation/transformers/es6/tail-call.js b/src/babel/transformation/transformers/es6/tail-call.js index 6e9fabafb4..91f6d3040b 100644 --- a/src/babel/transformation/transformers/es6/tail-call.js +++ b/src/babel/transformation/transformers/es6/tail-call.js @@ -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(); };