Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('basic', function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
var gen1, total, func1, result;
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0:
gen1 = function gen() {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, 1];
case 1:
_a.sent();
return [4, 2];
case 2:
_a.sent();
return [4, 3];
case 3:
_a.sent();
return [2];
}
var gen1 = function gen() {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, 'b'];
case 1:
_a.sent();
return [4, 'c'];
case 2:
_a.sent();
return [2];
}
});
};
var val1 = 'a';
var gen1 = function gen() {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, 'a'];
case 1:
_a.sent();
return [4, 'b'];
case 2:
_a.sent();
return [4, 'c'];
case 3:
_a.sent();
return [2];
}
});
};
var int1 = 2;
var gen1 = function gen() {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, 'a'];
case 1:
_a.sent();
return [4, 'b'];
case 2:
_a.sent();
return [2];
}
});
};
var val1 = 'c';
var gen1 = function gen() {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, 1];
case 1:
_a.sent();
return [4, 2];
case 2:
_a.sent();
return [4, 3];
case 3:
_a.sent();
return [2];
}
});
};
var arr1 = [4, 5];
var gen1 = function gen() {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, 1];
case 1:
_a.sent();
return [4, 2];
case 2:
_a.sent();
return [4, 3];
case 3:
_a.sent();
return [4, 4];
case 4:
_a.sent();
return [4, 5];
case 5:
_a.sent();
var gen1 = function gen() {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, 1];
case 1:
_a.sent();
return [4, 2];
case 2:
_a.sent();
return [4, 3];
case 3:
_a.sent();
return [4, 4];
case 4:
_a.sent();
return [4, 5];
case 5:
_a.sent();
var gen1 = function gen() {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, 1];
case 1:
_a.sent();
return [4, 2];
case 2:
_a.sent();
return [4, 3];
case 3:
_a.sent();
return [4, 4];
case 4:
_a.sent();
return [4, 5];
case 5:
_a.sent();
var gen1 = function gen() {
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, 1];
case 1:
_a.sent();
return [4, 2];
case 2:
_a.sent();
return [4, 3];
case 3:
_a.sent();
return [4, 4];
case 4:
_a.sent();
return [4, 5];
case 5:
_a.sent();