Files
babel/packages/babel-plugin-proposal-function-sent/test/fixtures/generator-kinds/class-method/output.js
2018-01-09 15:36:42 +01:00

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;
})();
}
}