Files
babel/packages/babel-plugin-proposal-function-sent/test/fixtures/generator-kinds/class-method/expected.js

13 lines
275 B
JavaScript

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