Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit de5a6da

Browse files
committed
Suppress CastError in logging mode
[email protected] Review URL: https://chromereviews.googleplex.com/150617013
1 parent 287db8b commit de5a6da

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/runtime/dart_logging_runtime.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,7 @@ dynamic cast(dynamic obj, Type staticType, {String key}) {
5252
var record =
5353
new CastRecord(obj.runtimeType, staticType, ddcSuccess, dartSuccess);
5454
castRecordHandler(key, record);
55-
if (dartSuccess) {
56-
return obj;
57-
} else {
58-
// The public API doesn't let us set a message or configure.
59-
throw new CastError();
60-
}
55+
return obj;
6156
}
6257

6358
// The default handler simply records all CastRecords and prints a summary

0 commit comments

Comments
 (0)