Skip to content

Commit f293bf5

Browse files
committed
Updated baselines
1 parent a747a4d commit f293bf5

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

tests/baselines/reference/transformNestedGeneratorsWithTry.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//// [tests/cases/compiler/transformNestedGeneratorsWithTry.ts] ////
22

33
//// [main.ts]
4+
// https://github.com/Microsoft/TypeScript/issues/11177
45
import * as Bluebird from 'bluebird';
56
async function a(): Bluebird<void> {
67
try {
@@ -58,6 +59,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
5859
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
5960
}
6061
};
62+
// https://github.com/Microsoft/TypeScript/issues/11177
6163
var Bluebird = require("bluebird");
6264
function a() {
6365
return __awaiter(this, void 0, Bluebird, function () {

tests/baselines/reference/transformNestedGeneratorsWithTry.symbols

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
=== tests/cases/compiler/main.ts ===
2+
// https://github.com/Microsoft/TypeScript/issues/11177
23
import * as Bluebird from 'bluebird';
3-
>Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6))
4+
>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6))
45

56
async function a(): Bluebird<void> {
6-
>a : Symbol(a, Decl(main.ts, 0, 37))
7-
>Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6))
7+
>a : Symbol(a, Decl(main.ts, 1, 37))
8+
>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6))
89

910
try {
1011
const b = async function b(): Bluebird<void> {
11-
>b : Symbol(b, Decl(main.ts, 3, 9))
12-
>b : Symbol(b, Decl(main.ts, 3, 13))
13-
>Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6))
12+
>b : Symbol(b, Decl(main.ts, 4, 9))
13+
>b : Symbol(b, Decl(main.ts, 4, 13))
14+
>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6))
1415

1516
try {
1617
await Bluebird.resolve(); // -- remove this and it compiles
1718
>Bluebird.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
18-
>Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6))
19+
>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6))
1920
>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
2021

2122
} catch (error) { }
22-
>error : Symbol(error, Decl(main.ts, 6, 15))
23+
>error : Symbol(error, Decl(main.ts, 7, 15))
2324

2425
};
2526

2627
await b(); // -- or remove this and it compiles
27-
>b : Symbol(b, Decl(main.ts, 3, 9))
28+
>b : Symbol(b, Decl(main.ts, 4, 9))
2829

2930
} catch (error) { }
30-
>error : Symbol(error, Decl(main.ts, 10, 11))
31+
>error : Symbol(error, Decl(main.ts, 11, 11))
3132
}
3233

3334
=== tests/cases/compiler/bluebird.d.ts ===

tests/baselines/reference/transformNestedGeneratorsWithTry.types

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
=== tests/cases/compiler/main.ts ===
2+
// https://github.com/Microsoft/TypeScript/issues/11177
23
import * as Bluebird from 'bluebird';
34
>Bluebird : PromiseConstructor
45

0 commit comments

Comments
 (0)