2018-01-09 15:36:42 +01:00

15 lines
356 B
JavaScript

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