Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
31175eb0
Unverified
Commit
31175eb0
authored
Mar 25, 2020
by
Dan Field
Committed by
GitHub
Mar 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "Replace uses of deprecated CastError with TypeError (#53221)" (#53226)" (#53269)
parent
9ccac005
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
platform_channel_test.dart
packages/flutter/test/services/platform_channel_test.dart
+2
-2
icon_tree_shaker.dart
..._tools/lib/src/build_system/targets/icon_tree_shaker.dart
+1
-1
No files found.
packages/flutter/test/services/platform_channel_test.dart
View file @
31175eb0
...
...
@@ -70,7 +70,7 @@ void main() {
}
},
);
expect
(
channel
.
invokeMethod
<
List
<
String
>>(
'sayHello'
,
'hello'
),
throwsA
(
is
CastError
));
expect
(
channel
.
invokeMethod
<
List
<
String
>>(
'sayHello'
,
'hello'
),
throwsA
(
is
InstanceOf
<
TypeError
>()
));
expect
(
await
channel
.
invokeListMethod
<
String
>(
'sayHello'
,
'hello'
),
<
String
>[
'hello'
,
'world'
]);
});
...
...
@@ -102,7 +102,7 @@ void main() {
}
},
);
expect
(
channel
.
invokeMethod
<
Map
<
String
,
String
>>(
'sayHello'
,
'hello'
),
throwsA
(
is
CastError
));
expect
(
channel
.
invokeMethod
<
Map
<
String
,
String
>>(
'sayHello'
,
'hello'
),
throwsA
(
is
InstanceOf
<
TypeError
>()
));
expect
(
await
channel
.
invokeMapMethod
<
String
,
String
>(
'sayHello'
,
'hello'
),
<
String
,
String
>{
'hello'
:
'world'
});
});
...
...
packages/flutter_tools/lib/src/build_system/targets/icon_tree_shaker.dart
View file @
31175eb0
...
...
@@ -25,7 +25,7 @@ const bool kIconTreeShakerEnabledDefault = false;
List
<
Map
<
String
,
dynamic
>>
_getList
(
dynamic
object
,
String
errorMessage
)
{
try
{
return
(
object
as
List
<
dynamic
>).
cast
<
Map
<
String
,
dynamic
>>();
}
on
Cast
Error
catch
(
_
)
{
}
on
Type
Error
catch
(
_
)
{
throw
IconTreeShakerException
.
_
(
errorMessage
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment