| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index 89334fa70868382b482f8a1d0494f685916e2844..5c396cb52bcbd6b965100e2c427c1efb886cba51 100644
|
| --- a/src/debug.cc
|
| +++ b/src/debug.cc
|
| @@ -2803,6 +2803,7 @@ void Debug::ProcessCompileEventInDebugScope(v8::DebugEvent event,
|
|
|
|
|
| Handle<Context> Debug::GetDebugContext() {
|
| + if (!is_loaded()) return Handle<Context>();
|
| DebugScope debug_scope(this);
|
| if (debug_scope.failed()) return Handle<Context>();
|
| // The global handle may be destroyed soon after. Return it reboxed.
|
|
|