Merge pull request #3097 from laskos/fix-async-module-export

Fix async exports undefined - fixes T3085
This commit is contained in:
Henry Zhu 2015-11-28 20:45:00 -05:00
commit c7c80bc0a3
3 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,6 @@ function plainFunction(path: NodePath, callId: Object) {
t.callExpression(container, [])
)
]);
declar._blockHoist = true;
retFunction.id = asyncFnId;
path.replaceWith(declar);

View File

@ -1,3 +1,5 @@
function normalFunction() {}
async function foo() {
var wat = await bar();
}

View File

@ -1,3 +1,5 @@
function normalFunction() {}
let foo = (function () {
var ref = babelHelpers.asyncToGenerator(function* () {
var wat = yield bar();