1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
//// [tests/cases/conformance/emitter/esnext/asyncGenerators/emitter.asyncGenerators.functionExpressions.esnext.ts] ////
//// [F1.ts]
const f1 = async function * () {
}
//// [F2.ts]
const f2 = async function * () {
const x = yield;
}
//// [F3.ts]
const f3 = async function * () {
const x = yield 1;
}
//// [F4.ts]
const f4 = async function * () {
const x = yield* [1];
}
//// [F5.ts]
const f5 = async function * () {
const x = yield* (async function*() { yield 1; })();
}
//// [F6.ts]
const f6 = async function * () {
const x = await 1;
}
//// [F7.ts]
const f7 = async function * () {
return 1;
}
//// [F1.js]
const f1 = async function* () {
};
//// [F2.js]
const f2 = async function* () {
const x = yield;
};
//// [F3.js]
const f3 = async function* () {
const x = yield 1;
};
//// [F4.js]
const f4 = async function* () {
const x = yield* [1];
};
//// [F5.js]
const f5 = async function* () {
const x = yield* (async function* () { yield 1; })();
};
//// [F6.js]
const f6 = async function* () {
const x = await 1;
};
//// [F7.js]
const f7 = async function* () {
return 1;
};
|