Merge pull request #3097 from laskos/fix-async-module-export
Fix async exports undefined - fixes T3085
This commit is contained in:
commit
c7c80bc0a3
@ -70,7 +70,6 @@ function plainFunction(path: NodePath, callId: Object) {
|
||||
t.callExpression(container, [])
|
||||
)
|
||||
]);
|
||||
declar._blockHoist = true;
|
||||
|
||||
retFunction.id = asyncFnId;
|
||||
path.replaceWith(declar);
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
function normalFunction() {}
|
||||
|
||||
async function foo() {
|
||||
var wat = await bar();
|
||||
}
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
function normalFunction() {}
|
||||
|
||||
let foo = (function () {
|
||||
var ref = babelHelpers.asyncToGenerator(function* () {
|
||||
var wat = yield bar();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user