Merge pull request babel/babel-eslint#166 from hzoo/remove-async-transform
remove async func transform
This commit is contained in:
parent
7d8de4e2ae
commit
69c303ea00
@ -235,11 +235,6 @@ var astTransformVisitor = {
|
|||||||
|
|
||||||
// functions
|
// functions
|
||||||
|
|
||||||
if (this.isFunction()) {
|
|
||||||
if (node.async) node.generator = true;
|
|
||||||
delete node.async;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.isAwaitExpression()) {
|
if (this.isAwaitExpression()) {
|
||||||
node.type = "YieldExpression";
|
node.type = "YieldExpression";
|
||||||
node.delegate = node.all;
|
node.delegate = node.all;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user