Files
babel/packages/babel-plugin-transform-function-sent/test/fixtures/generator-kinds/class-method/expected.js
Henry Zhu 0f823beeb1 Newlines in fixtures (#6044)
* write newlines for fixtures

* rerun fixtures
2017-08-02 15:35:29 -04: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;
})();
}
}