Files
babel/packages/babel-plugin-proposal-function-sent/test/fixtures/generator-kinds/export/output.mjs

15 lines
359 B
JavaScript

function _skipFirstGeneratorNext(fn) { return function () { var it = fn.apply(this, arguments); it.next(); return it; }; }
export function gen() {
return _gen.apply(this, arguments);
}
function _gen() {
_gen = _skipFirstGeneratorNext(function* () {
let _functionSent = yield;
return _functionSent;
});
return _gen.apply(this, arguments);
}