Async function will be hoisted above some imports
...but it's still below `exports.foo = undefined;`, so the test is intact
This commit is contained in:
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
||||
});
|
||||
exports.foo = undefined;
|
||||
|
||||
var _bar = require('bar');
|
||||
|
||||
var _bar2 = babelHelpers.interopRequireDefault(_bar);
|
||||
|
||||
let foo = exports.foo = function () {
|
||||
var ref = babelHelpers.asyncToGenerator(function* () {});
|
||||
return function foo() {
|
||||
return ref.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
|
||||
var _bar = require('bar');
|
||||
|
||||
var _bar2 = babelHelpers.interopRequireDefault(_bar);
|
||||
|
||||
Reference in New Issue
Block a user