| Index: runtime/bin/eventhandler.cc
|
| ===================================================================
|
| --- runtime/bin/eventhandler.cc (revision 5191)
|
| +++ runtime/bin/eventhandler.cc (working copy)
|
| @@ -19,7 +19,9 @@
|
| intptr_t value = 0;
|
| Dart_Handle result = Dart_GetNativeInstanceField(
|
| handle, kNativeEventHandlerFieldIndex, &value);
|
| - ASSERT(!Dart_IsError(result));
|
| + if (Dart_IsError(result)) {
|
| + Dart_PropagateError(result);
|
| + }
|
| EventHandler* event_handler = reinterpret_cast<EventHandler*>(value);
|
| ASSERT(event_handler != NULL);
|
| return event_handler;
|
|
|