Renamed files
This commit is contained in:
committed by
Nicolò Ribaudo
parent
07e69c009b
commit
0f42accb87
14
packages/babel-plugin-proposal-function-sent/test/fixtures/function-sent/basic/output.js
vendored
Normal file
14
packages/babel-plugin-proposal-function-sent/test/fixtures/function-sent/basic/output.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
13
packages/babel-plugin-proposal-function-sent/test/fixtures/function-sent/multiple/output.js
vendored
Normal file
13
packages/babel-plugin-proposal-function-sent/test/fixtures/function-sent/multiple/output.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
function _skipFirstGeneratorNext(fn) { return function () { var it = fn.apply(this, arguments); it.next(); return it; }; }
|
||||
|
||||
_skipFirstGeneratorNext(function* () {
|
||||
let _functionSent = yield;
|
||||
|
||||
const a = _functionSent;
|
||||
const b = _functionSent;
|
||||
_functionSent = yield 4;
|
||||
const c = _functionSent;
|
||||
const d = _functionSent = yield;
|
||||
const e = _functionSent;
|
||||
return [a, b, c, d, e];
|
||||
})();
|
||||
@@ -0,0 +1,4 @@
|
||||
function* foo() {
|
||||
let a = yield;
|
||||
return yield;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
function _skipFirstGeneratorNext(fn) { return function () { var it = fn.apply(this, arguments); it.next(); return it; }; }
|
||||
|
||||
_skipFirstGeneratorNext(function* () {
|
||||
let _functionSent = yield;
|
||||
|
||||
_functionSent = yield _functionSent;
|
||||
})();
|
||||
Reference in New Issue
Block a user