From f293bf5cb448e7e10782823f4bfd24b1e81d1cd7 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Sat, 1 Oct 2016 15:31:24 -0700 Subject: [PATCH] Updated baselines --- .../transformNestedGeneratorsWithTry.js | 2 ++ .../transformNestedGeneratorsWithTry.symbols | 21 ++++++++++--------- .../transformNestedGeneratorsWithTry.types | 1 + 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.js b/tests/baselines/reference/transformNestedGeneratorsWithTry.js index 55dc8bb6558..4ad1b2b7e88 100644 --- a/tests/baselines/reference/transformNestedGeneratorsWithTry.js +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry.js @@ -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 { try { @@ -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 () { diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols b/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols index 4713b682ff3..e966202c277 100644 --- a/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry.symbols @@ -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 { ->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 { ->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 === diff --git a/tests/baselines/reference/transformNestedGeneratorsWithTry.types b/tests/baselines/reference/transformNestedGeneratorsWithTry.types index 25198b98adf..3e4ef3f0852 100644 --- a/tests/baselines/reference/transformNestedGeneratorsWithTry.types +++ b/tests/baselines/reference/transformNestedGeneratorsWithTry.types @@ -1,4 +1,5 @@ === tests/cases/compiler/main.ts === +// https://github.com/Microsoft/TypeScript/issues/11177 import * as Bluebird from 'bluebird'; >Bluebird : PromiseConstructor