You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/controlFlowIIFE.errors.txt
+1-8Lines changed: 1 addition & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,8 @@
1
-
error TS2318: Cannot find global type 'IterableIterator'.
2
-
error TS2468: Cannot find global value 'Promise'.
3
1
tests/cases/conformance/controlFlow/controlFlowIIFE.ts(64,5): error TS2454: Variable 'v' is used before being assigned.
4
-
tests/cases/conformance/controlFlow/controlFlowIIFE.ts(69,6): error TS2705: An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option.
5
2
tests/cases/conformance/controlFlow/controlFlowIIFE.ts(72,5): error TS2454: Variable 'v' is used before being assigned.
6
3
7
4
8
-
!!! error TS2318: Cannot find global type 'IterableIterator'.
9
-
!!! error TS2468: Cannot find global value 'Promise'.
declare function getStringOrNumber(): string | number;
12
7
13
8
function f1() {
@@ -79,8 +74,6 @@ tests/cases/conformance/controlFlow/controlFlowIIFE.ts(72,5): error TS2454: Vari
79
74
function f6() {
80
75
let v: number;
81
76
(async function() {
82
-
~~~~~
83
-
!!! error TS2705: An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option.
0 commit comments