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

Unified Diff: pkg/polymer/lib/src/build/runner.dart

Issue 48483002: Remove deprecated parts of dart:async. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove runAsync use. Created 7 years, 2 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: pkg/polymer/lib/src/build/runner.dart
diff --git a/pkg/polymer/lib/src/build/runner.dart b/pkg/polymer/lib/src/build/runner.dart
index e4a104936cb70abb2722329fa97a7f1abf821735..e2e792999c93bc30b44a6728a614220f3409a76f 100644
--- a/pkg/polymer/lib/src/build/runner.dart
+++ b/pkg/polymer/lib/src/build/runner.dart
@@ -174,7 +174,8 @@ void _initBarback(Barback barback, BarbackOptions options) {
void _attachListeners(Barback barback) {
// Listen for errors and results
barback.errors.listen((e) {
- var trace = getAttachedStackTrace(e);
+ var trace = null;
+ if (e is Error) trace = e.stackTrace;
if (trace != null) {
print(Trace.format(trace));
}

Powered by Google App Engine
This is Rietveld 408576698