Chromium Code Reviews

Unified Diff: sdk/lib/_internal/compiler/implementation/dart2js.dart

Issue 48483002: Remove deprecated parts of dart:async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: sdk/lib/_internal/compiler/implementation/dart2js.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart
index e30543a8ea85a4bd8db1d64dd710c1a3115c2991..4ad188feb8c9ad8b619b7a8b626a158a7f22983f 100644
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart
@@ -590,7 +590,7 @@ void helpAndFail(String message) {
}
void mainWithErrorHandler(Options options) {
- runZoned(() => compilerMain(options), onError: (exception) {
+ runZoned(() => compilerMain(options), onError: (exception, trace) {
try {
print('Internal error: $exception');
} catch (ignored) {
@@ -598,7 +598,6 @@ void mainWithErrorHandler(Options options) {
}
try {
- var trace = getAttachedStackTrace(exception);
if (trace != null) {
print(trace);
}

Powered by Google App Engine