mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 19:27:35 -06:00
Updated baselines
This commit is contained in:
parent
a747a4da81
commit
f293bf5cb4
@ -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 {
|
||||
@ -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 () {
|
||||
|
||||
@ -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 ===
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
=== tests/cases/compiler/main.ts ===
|
||||
// https://github.com/Microsoft/TypeScript/issues/11177
|
||||
import * as Bluebird from 'bluebird';
|
||||
>Bluebird : PromiseConstructor
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user