| Index: src/execution.cc
|
| diff --git a/src/execution.cc b/src/execution.cc
|
| index 561897567378e90e0d6011334aaf3ffbd65648cb..40ed7de4140d1ea5716c5bc625bd46c00d26fa9b 100644
|
| --- a/src/execution.cc
|
| +++ b/src/execution.cc
|
| @@ -132,6 +132,12 @@ static Handle<Object> Invoke(bool is_construct,
|
| V8::FatalProcessOutOfMemory("JS", true);
|
| }
|
| }
|
| +#ifdef ENABLE_DEBUGGER_SUPPORT
|
| + // Reset stepping state when script exits with uncaught exception.
|
| + if (isolate->debugger()->IsDebuggerActive()) {
|
| + isolate->debug()->ClearStepping();
|
| + }
|
| +#endif // ENABLE_DEBUGGER_SUPPORT
|
| return Handle<Object>();
|
| } else {
|
| isolate->clear_pending_message();
|
|
|