mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
//// [tests/cases/compiler/crashInYieldStarInAsyncFunction.ts] ////
|
|
|
|
=== crashInYieldStarInAsyncFunction.ts ===
|
|
// https://github.com/microsoft/TypeScript/issues/53145
|
|
var obj = {
|
|
>obj : Symbol(obj, Decl(crashInYieldStarInAsyncFunction.ts, 1, 3))
|
|
|
|
[Symbol.asyncIterator]() {
|
|
>[Symbol.asyncIterator] : Symbol([Symbol.asyncIterator], Decl(crashInYieldStarInAsyncFunction.ts, 1, 11))
|
|
>Symbol.asyncIterator : Symbol(SymbolConstructor.asyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --))
|
|
>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2019.symbol.d.ts, --, --))
|
|
>asyncIterator : Symbol(SymbolConstructor.asyncIterator, Decl(lib.es2018.asynciterable.d.ts, --, --))
|
|
|
|
return {
|
|
next() {
|
|
>next : Symbol(next, Decl(crashInYieldStarInAsyncFunction.ts, 3, 16))
|
|
|
|
return { then() { } };
|
|
>then : Symbol(then, Decl(crashInYieldStarInAsyncFunction.ts, 5, 24))
|
|
}
|
|
};
|
|
}
|
|
};
|
|
|
|
async function* g() {
|
|
>g : Symbol(g, Decl(crashInYieldStarInAsyncFunction.ts, 9, 2))
|
|
|
|
yield* obj;
|
|
>obj : Symbol(obj, Decl(crashInYieldStarInAsyncFunction.ts, 1, 3))
|
|
}
|