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

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

Issue 839043002: More fatal errors to prevent crashes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 5 years, 11 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 | « dart/pkg/compiler/lib/src/resolution/members.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js/resolver_test.dart
diff --git a/dart/tests/compiler/dart2js/resolver_test.dart b/dart/tests/compiler/dart2js/resolver_test.dart
index 6f488bc02a9a74c03b679a16d4a9b3f3170d12aa..f33e1bbf74f7f25c626f3b7cf3ca0c0fd8beff5f 100644
--- a/dart/tests/compiler/dart2js/resolver_test.dart
+++ b/dart/tests/compiler/dart2js/resolver_test.dart
@@ -708,7 +708,15 @@ Future resolveConstructor(
new ResolverVisitor(compiler, element,
new ResolutionRegistry.internal(compiler,
new CollectingTreeElements(element)));
- new InitializerResolver(visitor).resolveInitializers(element, tree);
+ try {
+ new InitializerResolver(visitor).resolveInitializers(element, tree);
+ } on CompilerCancelledException catch (_) {
+ // Ignored.
+
+ // TODO(ahe): Don't ignore CompilerCancelledException, instead, fix
+ // pkg/compiler/lib/src/resolution/members.dart.
+ }
+
visitor.visit(tree.body);
Expect.equals(expectedElementCount, map(visitor).length);
« no previous file with comments | « dart/pkg/compiler/lib/src/resolution/members.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698