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
0830c75c
Unverified
Commit
0830c75c
authored
May 04, 2020
by
David Morgan
Committed by
GitHub
May 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn implicit casts in code generated by `flutter_platform.dart` into explicit casts. (#56290)
parent
58b10d6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
flutter_platform.dart
packages/flutter_tools/lib/src/test/flutter_platform.dart
+5
-5
No files found.
packages/flutter_tools/lib/src/test/flutter_platform.dart
View file @
0830c75c
...
@@ -200,9 +200,10 @@ void catchIsolateErrors() {
...
@@ -200,9 +200,10 @@ void catchIsolateErrors() {
errorPort
.
listen
((
dynamic
message
)
{
errorPort
.
listen
((
dynamic
message
)
{
// Masquerade as an IsolateSpawnException because that's what this would
// Masquerade as an IsolateSpawnException because that's what this would
// be if the error had been detected statically.
// be if the error had been detected statically.
final
IsolateSpawnException
error
=
IsolateSpawnException
(
message
[
0
]);
final
IsolateSpawnException
error
=
IsolateSpawnException
(
final
Trace
stackTrace
=
message
[
0
]
as
String
);
message
[
1
]
==
null
?
Trace
(
const
<
Frame
>[])
:
Trace
.
parse
(
message
[
1
]);
final
Trace
stackTrace
=
message
[
1
]
==
null
?
Trace
(
const
<
Frame
>[])
:
Trace
.
parse
(
message
[
1
]
as
String
);
Zone
.
current
.
handleUncaughtError
(
error
,
stackTrace
);
Zone
.
current
.
handleUncaughtError
(
error
,
stackTrace
);
});
});
}
}
...
@@ -230,8 +231,7 @@ void main() {
...
@@ -230,8 +231,7 @@ void main() {
});
});
WebSocket
.
connect
(
server
).
then
((
WebSocket
socket
)
{
WebSocket
.
connect
(
server
).
then
((
WebSocket
socket
)
{
socket
.
map
((
dynamic
x
)
{
socket
.
map
((
dynamic
x
)
{
assert
(
x
is
String
);
return
json
.
decode
(
x
as
String
);
return
json
.
decode
(
x
);
}).
pipe
(
channel
.
sink
);
}).
pipe
(
channel
.
sink
);
socket
.
addStream
(
channel
.
stream
.
map
(
json
.
encode
));
socket
.
addStream
(
channel
.
stream
.
map
(
json
.
encode
));
});
});
...
...
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