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

Unified Diff: dart/site/try/src/compilation.dart

Issue 391693003: Clear old messages when reporting exception. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/src/compilation.dart
diff --git a/dart/site/try/src/compilation.dart b/dart/site/try/src/compilation.dart
index 0fcc7937089ab020dd17cb61b6574183475fd45c..4b4a61a38eef3ddc3e5deac577ed947d2dcc76ad 100644
--- a/dart/site/try/src/compilation.dart
+++ b/dart/site/try/src/compilation.dart
@@ -197,6 +197,7 @@ self.importScripts("$url");
void run(String url, IFrameElement makeIframe()) {
void retryInIframe() {
+ interaction.aboutToRun();
var frame = makeIframe();
frame.style
..visibility = 'hidden'
@@ -206,9 +207,8 @@ self.importScripts("$url");
errorStream(frame).listen(interaction.onIframeError);
}
void onError(String errorMessage) {
+ interaction.consolePrintLine(errorMessage);
console
- ..appendText(errorMessage)
- ..appendText(' ')
..append(buildButton('Try in iframe', (_) => retryInIframe()))
..appendText('\n');
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698