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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 1193873003: Fix build break. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 405954d314094a7918ab4c1952f43b1b02a8f10a..f931a3405f3485cb670856de50a18fe73c96936a 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -815,7 +815,8 @@ DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception) {
CHECK_CALLBACK_STATE(isolate);
Instance& obj = Instance::Handle(isolate);
- if (Dart_IsApiError(exception) || Dart_IsCompilationError(exception)) {
+ intptr_t class_id = Api::ClassId(exception);
+ if ((class_id == kApiErrorCid) || (class_id == kLanguageErrorCid)) {
obj = String::New(Dart_GetError(exception));
} else {
obj = Api::UnwrapInstanceHandle(isolate, exception).raw();
« 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