-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Original issue submitted by @wrbing728 in babel/babel#9980
Bug Report
Current Behavior
Just see the nodent below, async/await was transformed to block-scope function, which is not supported in iOS9.x

Expected behavior/code
Expect the generated result to be compatible with low version of iOS. Like this:
var wait = function wait(param) {
return _await(param);
};
var blockScopeFun = _async(function (param) {
return _continueIgnored(_catch(function () {
return _invokeIgnored(function () {
if (param) {
return _callIgnored(wait);
}
});
}, function (error) {
console.log(error);
}));
});Metadata
Metadata
Assignees
Labels
No labels
