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

Unified Diff: runtime/lib/mirrors.cc

Issue 23994007: Properly handle exceptions that arise when reflectively invoking a constructor/factory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors.cc
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
index 0cbe9890be9ad9a5e7c083d45eff18e415459160..8bed35617b56c976c75d5ebec3689bcb44ea404f 100644
--- a/runtime/lib/mirrors.cc
+++ b/runtime/lib/mirrors.cc
@@ -1166,7 +1166,8 @@ DEFINE_NATIVE_ENTRY(ClassMirror_invokeConstructor, 5) {
args,
args_descriptor_array));
if (result.IsError()) {
- return result.raw();
+ ThrowInvokeError(Error::Cast(result));
+ UNREACHABLE();
}
// Factories may return null.
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698