Index: runtime/vm/dart_entry.cc |
diff --git a/runtime/vm/dart_entry.cc b/runtime/vm/dart_entry.cc |
index c9e7769fba4a0b47400b6ee8dfcaf4302c9ab65f..f78dc3ca37c9da385e1836ef519b4ca6c7b1010c 100644 |
--- a/runtime/vm/dart_entry.cc |
+++ b/runtime/vm/dart_entry.cc |
@@ -243,6 +243,10 @@ RawObject* DartEntry::InvokeNoSuchMethod(const Instance& receiver, |
allocation_args.SetAt(3, Bool::False()); // Not a super invocation. |
const Object& invocation_mirror = Object::Handle( |
InvokeFunction(allocation_function, allocation_args)); |
+ if (invocation_mirror.IsError()) { |
+ Exceptions::PropagateError(Error::Cast(invocation_mirror)); |
+ UNREACHABLE(); |
+ } |
// Now use the invocation mirror object and invoke NoSuchMethod. |
const int kNumArguments = 2; |