Skip to content

Commit

Permalink
Updated baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Oct 1, 2016
1 parent a747a4d commit f293bf5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 2 additions & 0 deletions tests/baselines/reference/transformNestedGeneratorsWithTry.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//// [tests/cases/compiler/transformNestedGeneratorsWithTry.ts] ////

//// [main.ts]
// https://github.com/Microsoft/TypeScript/issues/11177
import * as Bluebird from 'bluebird';
async function a(): Bluebird<void> {
try {
Expand Down Expand Up @@ -58,6 +59,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
// https://github.com/Microsoft/TypeScript/issues/11177
var Bluebird = require("bluebird");
function a() {
return __awaiter(this, void 0, Bluebird, function () {
Expand Down
21 changes: 11 additions & 10 deletions tests/baselines/reference/transformNestedGeneratorsWithTry.symbols
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
=== tests/cases/compiler/main.ts ===
// https://github.com/Microsoft/TypeScript/issues/11177
import * as Bluebird from 'bluebird';
>Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6))
>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6))

async function a(): Bluebird<void> {
>a : Symbol(a, Decl(main.ts, 0, 37))
>Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6))
>a : Symbol(a, Decl(main.ts, 1, 37))
>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6))

try {
const b = async function b(): Bluebird<void> {
>b : Symbol(b, Decl(main.ts, 3, 9))
>b : Symbol(b, Decl(main.ts, 3, 13))
>Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6))
>b : Symbol(b, Decl(main.ts, 4, 9))
>b : Symbol(b, Decl(main.ts, 4, 13))
>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6))

try {
await Bluebird.resolve(); // -- remove this and it compiles
>Bluebird.resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))
>Bluebird : Symbol(Bluebird, Decl(main.ts, 0, 6))
>Bluebird : Symbol(Bluebird, Decl(main.ts, 1, 6))
>resolve : Symbol(PromiseConstructor.resolve, Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --))

} catch (error) { }
>error : Symbol(error, Decl(main.ts, 6, 15))
>error : Symbol(error, Decl(main.ts, 7, 15))

};

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

} catch (error) { }
>error : Symbol(error, Decl(main.ts, 10, 11))
>error : Symbol(error, Decl(main.ts, 11, 11))
}

=== tests/cases/compiler/bluebird.d.ts ===
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
=== tests/cases/compiler/main.ts ===
// https://github.com/Microsoft/TypeScript/issues/11177
import * as Bluebird from 'bluebird';
>Bluebird : PromiseConstructor

Expand Down

0 comments on commit f293bf5

Please sign in to comment.