Commit e24e6ff
committed
fix(aws_common): avoid JS interop type in catch clause for Dart beta compatibility
Replace typed catch clause `on ProgressEvent catch (e)` with an untyped
catch and an `is` check guarded by an ignore comment. Dart 3.12 beta
reports `invalid_runtime_check_with_js_interop_types` for catch clauses
that use JS interop types, since the runtime check may not be
platform-consistent.1 parent dd8831a commit e24e6ff
1 file changed
Lines changed: 4 additions & 2 deletions
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
184 | 186 | | |
185 | 187 | | |
186 | 188 | | |
| |||
0 commit comments