mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
668 B
TypeScript
33 lines
668 B
TypeScript
//// [tests/cases/compiler/es5-asyncFunctionNestedLoops.ts] ////
|
|
|
|
//// [es5-asyncFunctionNestedLoops.ts]
|
|
declare var x, y, z, a, b, c;
|
|
|
|
async function nestedLoops() {
|
|
A: while (x) {
|
|
await y;
|
|
while (z) {
|
|
continue A;
|
|
}
|
|
while (a) {
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [es5-asyncFunctionNestedLoops.js]
|
|
"use strict";
|
|
function nestedLoops() {
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
A: while (x) {
|
|
yield y;
|
|
while (z) {
|
|
continue A;
|
|
}
|
|
while (a) {
|
|
continue;
|
|
}
|
|
}
|
|
});
|
|
}
|