Skip to content

Commit 6f357e5

Browse files
committed
Update baselines
1 parent cbeb11e commit 6f357e5

4 files changed

+76
-92
lines changed

tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,13 @@ var C4 = (function () {
293293
}
294294
C4.prototype.f = function () {
295295
return __asyncGenerator(this, arguments, function f_1() {
296-
var x, _a;
297-
return __generator(this, function (_b) {
298-
switch (_b.label) {
299-
case 0:
300-
_a = __await;
301-
return [5 /*yield**/, __values(__asyncDelegator(__asyncValues([1])))];
302-
case 1: return [4 /*yield*/, _a.apply(void 0, [_b.sent()])];
296+
var x;
297+
return __generator(this, function (_a) {
298+
switch (_a.label) {
299+
case 0: return [5 /*yield**/, __values(__asyncDelegator(__asyncValues([1])))];
300+
case 1: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];
303301
case 2:
304-
x = _b.sent();
302+
x = _a.sent();
305303
return [2 /*return*/];
306304
}
307305
});
@@ -374,22 +372,20 @@ var C5 = (function () {
374372
}
375373
C5.prototype.f = function () {
376374
return __asyncGenerator(this, arguments, function f_1() {
377-
var x, _a;
378-
return __generator(this, function (_b) {
379-
switch (_b.label) {
380-
case 0:
381-
_a = __await;
382-
return [5 /*yield**/, __values(__asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function () { return __generator(this, function (_a) {
383-
switch (_a.label) {
384-
case 0: return [4 /*yield*/, 1];
385-
case 1:
386-
_a.sent();
387-
return [2 /*return*/];
388-
}
389-
}); }); })())))];
390-
case 1: return [4 /*yield*/, _a.apply(void 0, [_b.sent()])];
375+
var x;
376+
return __generator(this, function (_a) {
377+
switch (_a.label) {
378+
case 0: return [5 /*yield**/, __values(__asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function () { return __generator(this, function (_a) {
379+
switch (_a.label) {
380+
case 0: return [4 /*yield*/, 1];
381+
case 1:
382+
_a.sent();
383+
return [2 /*return*/];
384+
}
385+
}); }); })())))];
386+
case 1: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];
391387
case 2:
392-
x = _b.sent();
388+
x = _a.sent();
393389
return [2 /*return*/];
394390
}
395391
});

tests/baselines/reference/emitter.asyncGenerators.functionDeclarations.es5.js

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,13 @@ var __values = (this && this.__values) || function (o) {
244244
};
245245
function f4() {
246246
return __asyncGenerator(this, arguments, function f4_1() {
247-
var x, _a;
248-
return __generator(this, function (_b) {
249-
switch (_b.label) {
250-
case 0:
251-
_a = __await;
252-
return [5 /*yield**/, __values(__asyncDelegator(__asyncValues([1])))];
253-
case 1: return [4 /*yield*/, _a.apply(void 0, [_b.sent()])];
247+
var x;
248+
return __generator(this, function (_a) {
249+
switch (_a.label) {
250+
case 0: return [5 /*yield**/, __values(__asyncDelegator(__asyncValues([1])))];
251+
case 1: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];
254252
case 2:
255-
x = _b.sent();
253+
x = _a.sent();
256254
return [2 /*return*/];
257255
}
258256
});
@@ -320,22 +318,20 @@ var __values = (this && this.__values) || function (o) {
320318
};
321319
function f5() {
322320
return __asyncGenerator(this, arguments, function f5_1() {
323-
var x, _a;
324-
return __generator(this, function (_b) {
325-
switch (_b.label) {
326-
case 0:
327-
_a = __await;
328-
return [5 /*yield**/, __values(__asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function () { return __generator(this, function (_a) {
329-
switch (_a.label) {
330-
case 0: return [4 /*yield*/, 1];
331-
case 1:
332-
_a.sent();
333-
return [2 /*return*/];
334-
}
335-
}); }); })())))];
336-
case 1: return [4 /*yield*/, _a.apply(void 0, [_b.sent()])];
321+
var x;
322+
return __generator(this, function (_a) {
323+
switch (_a.label) {
324+
case 0: return [5 /*yield**/, __values(__asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function () { return __generator(this, function (_a) {
325+
switch (_a.label) {
326+
case 0: return [4 /*yield*/, 1];
327+
case 1:
328+
_a.sent();
329+
return [2 /*return*/];
330+
}
331+
}); }); })())))];
332+
case 1: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];
337333
case 2:
338-
x = _b.sent();
334+
x = _a.sent();
339335
return [2 /*return*/];
340336
}
341337
});

tests/baselines/reference/emitter.asyncGenerators.functionExpressions.es5.js

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,13 @@ var __values = (this && this.__values) || function (o) {
244244
};
245245
var f4 = function () {
246246
return __asyncGenerator(this, arguments, function () {
247-
var x, _a;
248-
return __generator(this, function (_b) {
249-
switch (_b.label) {
250-
case 0:
251-
_a = __await;
252-
return [5 /*yield**/, __values(__asyncDelegator(__asyncValues([1])))];
253-
case 1: return [4 /*yield*/, _a.apply(void 0, [_b.sent()])];
247+
var x;
248+
return __generator(this, function (_a) {
249+
switch (_a.label) {
250+
case 0: return [5 /*yield**/, __values(__asyncDelegator(__asyncValues([1])))];
251+
case 1: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];
254252
case 2:
255-
x = _b.sent();
253+
x = _a.sent();
256254
return [2 /*return*/];
257255
}
258256
});
@@ -320,22 +318,20 @@ var __values = (this && this.__values) || function (o) {
320318
};
321319
var f5 = function () {
322320
return __asyncGenerator(this, arguments, function () {
323-
var x, _a;
324-
return __generator(this, function (_b) {
325-
switch (_b.label) {
326-
case 0:
327-
_a = __await;
328-
return [5 /*yield**/, __values(__asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function () { return __generator(this, function (_a) {
329-
switch (_a.label) {
330-
case 0: return [4 /*yield*/, 1];
331-
case 1:
332-
_a.sent();
333-
return [2 /*return*/];
334-
}
335-
}); }); })())))];
336-
case 1: return [4 /*yield*/, _a.apply(void 0, [_b.sent()])];
321+
var x;
322+
return __generator(this, function (_a) {
323+
switch (_a.label) {
324+
case 0: return [5 /*yield**/, __values(__asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function () { return __generator(this, function (_a) {
325+
switch (_a.label) {
326+
case 0: return [4 /*yield*/, 1];
327+
case 1:
328+
_a.sent();
329+
return [2 /*return*/];
330+
}
331+
}); }); })())))];
332+
case 1: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];
337333
case 2:
338-
x = _b.sent();
334+
x = _a.sent();
339335
return [2 /*return*/];
340336
}
341337
});

tests/baselines/reference/emitter.asyncGenerators.objectLiteralMethods.es5.js

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,13 @@ var __values = (this && this.__values) || function (o) {
265265
var o4 = {
266266
f: function () {
267267
return __asyncGenerator(this, arguments, function f_1() {
268-
var x, _a;
269-
return __generator(this, function (_b) {
270-
switch (_b.label) {
271-
case 0:
272-
_a = __await;
273-
return [5 /*yield**/, __values(__asyncDelegator(__asyncValues([1])))];
274-
case 1: return [4 /*yield*/, _a.apply(void 0, [_b.sent()])];
268+
var x;
269+
return __generator(this, function (_a) {
270+
switch (_a.label) {
271+
case 0: return [5 /*yield**/, __values(__asyncDelegator(__asyncValues([1])))];
272+
case 1: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];
275273
case 2:
276-
x = _b.sent();
274+
x = _a.sent();
277275
return [2 /*return*/];
278276
}
279277
});
@@ -343,22 +341,20 @@ var __values = (this && this.__values) || function (o) {
343341
var o5 = {
344342
f: function () {
345343
return __asyncGenerator(this, arguments, function f_1() {
346-
var x, _a;
347-
return __generator(this, function (_b) {
348-
switch (_b.label) {
349-
case 0:
350-
_a = __await;
351-
return [5 /*yield**/, __values(__asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function () { return __generator(this, function (_a) {
352-
switch (_a.label) {
353-
case 0: return [4 /*yield*/, 1];
354-
case 1:
355-
_a.sent();
356-
return [2 /*return*/];
357-
}
358-
}); }); })())))];
359-
case 1: return [4 /*yield*/, _a.apply(void 0, [_b.sent()])];
344+
var x;
345+
return __generator(this, function (_a) {
346+
switch (_a.label) {
347+
case 0: return [5 /*yield**/, __values(__asyncDelegator(__asyncValues((function () { return __asyncGenerator(this, arguments, function () { return __generator(this, function (_a) {
348+
switch (_a.label) {
349+
case 0: return [4 /*yield*/, 1];
350+
case 1:
351+
_a.sent();
352+
return [2 /*return*/];
353+
}
354+
}); }); })())))];
355+
case 1: return [4 /*yield*/, __await.apply(void 0, [_a.sent()])];
360356
case 2:
361-
x = _b.sent();
357+
x = _a.sent();
362358
return [2 /*return*/];
363359
}
364360
});

0 commit comments

Comments
 (0)