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

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

Issue 2982093003: Unifying compiler context (Closed)
Patch Set: revert change to kernel-service.dart Created 3 years, 5 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
Index: tests/compiler/dart2js/dill_loader_test.dart
diff --git a/tests/compiler/dart2js/dill_loader_test.dart b/tests/compiler/dart2js/dill_loader_test.dart
index 9bf70242b4ff45f83cd25f485bb2fa17abcd6d5a..bbdb6260cfc8e3f3d9cd4845339b2e20c94ca550 100644
--- a/tests/compiler/dart2js/dill_loader_test.dart
+++ b/tests/compiler/dart2js/dill_loader_test.dart
@@ -52,8 +52,8 @@ main() {
..packagesFileUri = Platform.script.resolve('../../../.packages')
..compileSdk = true
..linkedDependencies = [platform]
- ..verify = true
- ..onError = errorHandler;
+ ..setExitCodeOnProblem = true
+ ..verify = true;
List<int> kernelBinary =
serializeProgram(await kernelForProgram(uri, options));
@@ -79,8 +79,3 @@ main() {
Expect.isNotNull(member);
});
}
-
-void errorHandler(CompilationError e) {
- exitCode = 1;
- print(e.message);
-}

Powered by Google App Engine
This is Rietveld 408576698