| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -217,6 +217,10 @@ const pc6 = p.then(() => Promise.reject("1"), () => {}); | |||
| 217 | 217 | const pc7 = p.then(() => Promise.reject("1"), () => {throw 1}); | |
| 218 | 218 | const pc8 = p.then(() => Promise.reject("1"), () => Promise.resolve(1)); | |
| 219 | 219 | const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); | |
| 220 | + | ||
| 221 | + // #28427 | ||
| 222 | + | ||
| 223 | + Promise.all([undefined as Promise<number> | string]); | ||
| 220 | 224 | ||
| 221 | 225 | ||
| 222 | 226 | //// [promiseType.js] | |
@@ -440,3 +444,5 @@ const pc6 = p.then(() => Promise.reject("1"), () => { }); | |||
| 440 | 444 | const pc7 = p.then(() => Promise.reject("1"), () => { throw 1; }); | |
| 441 | 445 | const pc8 = p.then(() => Promise.reject("1"), () => Promise.resolve(1)); | |
| 442 | 446 | const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); | |
| 447 | + // #28427 | ||
| 448 | + Promise.all([undefined]); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1089,3 +1089,12 @@ const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); | |||
| 1089 | 1089 | >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) | |
| 1090 | 1090 | >reject : Symbol(PromiseConstructor.reject, Decl(lib.es2015.promise.d.ts, --, --)) | |
| 1091 | 1091 | ||
| 1092 | + // #28427 | ||
| 1093 | + | ||
| 1094 | + Promise.all([undefined as Promise<number> | string]); | ||
| 1095 | + >Promise.all : Symbol(PromiseConstructor.all, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) | ||
| 1096 | + >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) | ||
| 1097 | + >all : Symbol(PromiseConstructor.all, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --)) | ||
| 1098 | + >undefined : Symbol(undefined) | ||
| 1099 | + >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) | ||
| 1100 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1583,3 +1583,14 @@ const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); | |||
| 1583 | 1583 | >reject : <T = never>(reason?: any) => Promise<T> | |
| 1584 | 1584 | >1 : 1 | |
| 1585 | 1585 | ||
| 1586 | + // #28427 | ||
| 1587 | + | ||
| 1588 | + Promise.all([undefined as Promise<number> | string]); | ||
| 1589 | + >Promise.all([undefined as Promise<number> | string]) : Promise<(string | number)[]> | ||
| 1590 | + >Promise.all : { <TAll>(values: Iterable<TAll>): Promise<(TAll extends PromiseLike<infer UAll> ? UAll : TAll)[]>; <T extends readonly any[]>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>; } | ||
| 1591 | + >Promise : PromiseConstructor | ||
| 1592 | + >all : { <TAll>(values: Iterable<TAll>): Promise<(TAll extends PromiseLike<infer UAll> ? UAll : TAll)[]>; <T extends readonly any[]>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>; } | ||
| 1593 | + >[undefined as Promise<number> | string] : (string | Promise<number>)[] | ||
| 1594 | + >undefined as Promise<number> | string : string | Promise<number> | ||
| 1595 | + >undefined : undefined | ||
| 1596 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -217,3 +217,7 @@ const pc6 = p.then(() => Promise.reject("1"), () => {}); | |||
| 217 | 217 | const pc7 = p.then(() => Promise.reject("1"), () => {throw 1}); | |
| 218 | 218 | const pc8 = p.then(() => Promise.reject("1"), () => Promise.resolve(1)); | |
| 219 | 219 | const pc9 = p.then(() => Promise.reject("1"), () => Promise.reject(1)); | |
| 220 | + | ||
| 221 | + // #28427 | ||
| 222 | + | ||
| 223 | + Promise.all([undefined as Promise<number> | string]); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments