| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index 66b0e0a0ef3ee09a8c22fd6461285d1655f73855..56756c47fbf7efcc373cbdf3f6a762de2ba50665 100644
|
| --- a/src/debug.cc
|
| +++ b/src/debug.cc
|
| @@ -2804,6 +2804,7 @@ void Debug::ProcessCompileEventInDebugScope(v8::DebugEvent event,
|
|
|
| Handle<Context> Debug::GetDebugContext() {
|
| DebugScope debug_scope(this);
|
| + if (debug_scope.failed()) return Handle<Context>();
|
| // The global handle may be destroyed soon after. Return it reboxed.
|
| return handle(*debug_context(), isolate_);
|
| }
|
|
|