@@ -100,7 +100,7 @@ describe('AsyncWriter', () => {
100
100
try {
101
101
await runTranspiledCode ( 'Promise.reject(42)' ) ;
102
102
expect . fail ( 'missed exception' ) ;
103
- } catch ( err ) {
103
+ } catch ( err : any ) {
104
104
expect ( err ) . to . equal ( 42 ) ;
105
105
}
106
106
} ) ;
@@ -122,7 +122,7 @@ describe('AsyncWriter', () => {
122
122
try {
123
123
runTranspiledCode ( "'use strict'; delete Object.prototype" ) ;
124
124
expect . fail ( 'missed exception' ) ;
125
- } catch ( err ) {
125
+ } catch ( err : any ) {
126
126
expect ( err . name ) . to . equal ( 'TypeError' ) ;
127
127
}
128
128
} ) ;
@@ -864,7 +864,7 @@ describe('AsyncWriter', () => {
864
864
try {
865
865
await runTranspiledCode ( '(async () => { var foo; foo(); })()' ) ;
866
866
expect . fail ( 'missed exception' ) ;
867
- } catch ( err ) {
867
+ } catch ( err : any ) {
868
868
expect ( err . message ) . to . equal ( 'foo is not a function' ) ;
869
869
}
870
870
} ) ;
@@ -947,7 +947,7 @@ describe('AsyncWriter', () => {
947
947
}
948
948
})();` ) ;
949
949
expect . fail ( 'missed exception' ) ;
950
- } catch ( err ) {
950
+ } catch ( err : any ) {
951
951
expect ( err . message ) . to . equal ( 'generic error' ) ;
952
952
}
953
953
} ) ;
@@ -1054,7 +1054,7 @@ describe('AsyncWriter', () => {
1054
1054
}
1055
1055
})();` ) ;
1056
1056
expect . fail ( 'missed exception' ) ;
1057
- } catch ( err ) {
1057
+ } catch ( err : any ) {
1058
1058
expect ( err . message ) . to . equal ( 'uncatchable!' ) ;
1059
1059
}
1060
1060
} ) ;
@@ -1068,7 +1068,7 @@ describe('AsyncWriter', () => {
1068
1068
} catch { }
1069
1069
})();` ) ;
1070
1070
expect . fail ( 'missed exception' ) ;
1071
- } catch ( err ) {
1071
+ } catch ( err : any ) {
1072
1072
expect ( err . message ) . to . equal ( 'uncatchable!' ) ;
1073
1073
}
1074
1074
} ) ;
@@ -1082,7 +1082,7 @@ describe('AsyncWriter', () => {
1082
1082
} catch { } finally { return; }
1083
1083
})();` ) ;
1084
1084
expect . fail ( 'missed exception' ) ;
1085
- } catch ( err ) {
1085
+ } catch ( err : any ) {
1086
1086
expect ( err . message ) . to . equal ( 'uncatchable!' ) ;
1087
1087
}
1088
1088
} ) ;
@@ -1096,7 +1096,7 @@ describe('AsyncWriter', () => {
1096
1096
} finally { return; }
1097
1097
})();` ) ;
1098
1098
expect . fail ( 'missed exception' ) ;
1099
- } catch ( err ) {
1099
+ } catch ( err : any ) {
1100
1100
expect ( err . message ) . to . equal ( 'uncatchable!' ) ;
1101
1101
}
1102
1102
} ) ;
@@ -1114,7 +1114,7 @@ describe('AsyncWriter', () => {
1114
1114
}
1115
1115
})();` ) ;
1116
1116
expect . fail ( 'missed exception' ) ;
1117
- } catch ( err ) {
1117
+ } catch ( err : any ) {
1118
1118
expect ( err . message ) . to . equal ( 'uncatchable!' ) ;
1119
1119
}
1120
1120
} ) ;
0 commit comments