Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Unified Diff: tests/compiler/dart2js/serialization_resolved_ast_test.dart

Issue 1939703002: Don't crash on deserialized type inference. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments + minor fix. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/serialization_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/serialization_resolved_ast_test.dart
diff --git a/tests/compiler/dart2js/serialization_resolved_ast_test.dart b/tests/compiler/dart2js/serialization_resolved_ast_test.dart
index 7712f9a44a1e64b061b1471c560149ea654ecbd1..430f9fecfaf10519468dcd0c6b6bc8037e3464b8 100644
--- a/tests/compiler/dart2js/serialization_resolved_ast_test.dart
+++ b/tests/compiler/dart2js/serialization_resolved_ast_test.dart
@@ -68,7 +68,8 @@ void checkAllResolvedAsts(
compiler1,
compiler2,
(Element member1) {
- return compiler1.resolution.hasResolvedAst(member1);
+ return member1 is ExecutableElement &&
+ compiler1.resolution.hasResolvedAst(member1);
},
checkResolvedAsts,
verbose: verbose);
« no previous file with comments | « tests/compiler/dart2js/serialization_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698