| Index: runtime/lib/mirrors.cc
|
| diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc
|
| index 463b3de856bcd4391cce27dc823b018a6f4a53c9..24c2ef6d82c1ad5325d238a919bfde5a4417a8be 100644
|
| --- a/runtime/lib/mirrors.cc
|
| +++ b/runtime/lib/mirrors.cc
|
| @@ -1226,9 +1226,15 @@ DEFINE_NATIVE_ENTRY(Mirrors_evalInLibraryWithPrivateKey, 2) {
|
| }
|
| }
|
| ASSERT(!ctxt_library.IsNull());
|
| - return ctxt_library.Evaluate(expression,
|
| - Array::empty_array(),
|
| - Array::empty_array());
|
| + const Object& result =
|
| + Object::Handle(ctxt_library.Evaluate(expression,
|
| + Array::empty_array(),
|
| + Array::empty_array()));
|
| + if (result.IsError()) {
|
| + Exceptions::PropagateError(Error::Cast(result));
|
| + UNREACHABLE();
|
| + }
|
| + return result.raw();
|
| }
|
|
|
| DEFINE_NATIVE_ENTRY(TypedefMirror_declaration, 1) {
|
|
|