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

Unified Diff: lib/custom_compiler.dart

Issue 2087553002: Add regression tests. (Closed) Base URL: git@github.com:dart-lang/rasta.git@this_call
Patch Set: Reset library loader after crash. Created 4 years, 6 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 | « no previous file | test/kernel/regression/issue_000043.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/custom_compiler.dart
diff --git a/lib/custom_compiler.dart b/lib/custom_compiler.dart
index 122401029741306430dd1ac7a27ff60e47021352..9cf03b9e0e4e5cb250f52a08033ab3c73172f09b 100644
--- a/lib/custom_compiler.dart
+++ b/lib/custom_compiler.dart
@@ -130,6 +130,7 @@ class CustomCompiler extends CompilerImpl {
handler.isAborting = false;
}
enqueuer.resolution.deferredTaskQueue.clear();
+ (libraryLoader as dynamic).currentHandler = null;
}
bool get isInternalStateConsistent {
@@ -151,6 +152,10 @@ class CustomCompiler extends CompilerImpl {
print("Resolution deferredTaskQueue isn't empty");
return false;
}
+ if ((libraryLoader as dynamic).currentHandler != null) {
+ print("compiler.libraryLoader.currentHandler isn't null");
+ return false;
+ }
return true;
}
}
« no previous file with comments | « no previous file | test/kernel/regression/issue_000043.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698