Revert "Don't mark async functions as hoist"
This reverts commit d34cb69912.
This commit is contained in:
@@ -87,6 +87,7 @@ function plainFunction(path: NodePath, callId: Object) {
|
||||
t.callExpression(container, [])
|
||||
)
|
||||
]);
|
||||
declar._blockHoist = true;
|
||||
|
||||
retFunction.id = asyncFnId;
|
||||
path.replaceWith(declar);
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
function normalFunction() {}
|
||||
|
||||
async function foo() {
|
||||
var wat = await bar();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
function normalFunction() {}
|
||||
|
||||
let foo = function () {
|
||||
var ref = babelHelpers.asyncToGenerator(function* () {
|
||||
var wat = yield bar();
|
||||
|
||||
Reference in New Issue
Block a user