| Index: runtime/vm/isolate.cc
|
| ===================================================================
|
| --- runtime/vm/isolate.cc (revision 38068)
|
| +++ runtime/vm/isolate.cc (working copy)
|
| @@ -345,6 +345,13 @@
|
| // Invoke the isolate's uncaught exception handler, if it exists.
|
| const UnhandledException& error = UnhandledException::Cast(result);
|
| RawInstance* exception = error.exception();
|
| + if ((exception == I->object_store()->out_of_memory()) ||
|
| + (exception == I->object_store()->stack_overflow())) {
|
| + // We didn't notify the debugger when the stack was full. Do it now.
|
| + // TODO(hausner): uncomment the debugger notification once debuggers
|
| + // can deal with exceptions thrown on an empty stack.
|
| + // I->debugger()->SignalExceptionThrown(Instance::Handle(exception));
|
| + }
|
| if ((exception != I->object_store()->out_of_memory()) &&
|
| (exception != I->object_store()->stack_overflow())) {
|
| if (UnhandledExceptionCallbackHandler(message, error)) {
|
|
|