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

Unified Diff: runtime/vm/isolate.cc

Issue 8501034: Deal with unhandled exceptions the same way in all Dart api functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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 | « runtime/vm/exceptions_test.cc ('k') | runtime/vm/isolate_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
===================================================================
--- runtime/vm/isolate.cc (revision 1469)
+++ runtime/vm/isolate.cc (working copy)
@@ -246,8 +246,12 @@
PortMessage* message = message_queue()->Dequeue(0);
if (message != NULL) {
- Dart_HandleMessage(
+ Dart_Handle result = Dart_HandleMessage(
message->dest_port(), message->reply_port(), message->data());
+ if (Dart_IsError(result)) {
+ fprintf(stderr, "%s\n", Dart_GetError(result));
+ exit(255);
+ }
delete message;
}
}
« no previous file with comments | « runtime/vm/exceptions_test.cc ('k') | runtime/vm/isolate_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698