| Index: src/d8.cc
|
| diff --git a/src/d8.cc b/src/d8.cc
|
| index 1067a38600fa3a1b0ee99248a74c27da3fa85115..9e409977e3e8d7ff7be5800e926a586e4080f004 100644
|
| --- a/src/d8.cc
|
| +++ b/src/d8.cc
|
| @@ -526,8 +526,10 @@ Handle<Value> Shell::Version(const Arguments& args) {
|
|
|
| void Shell::ReportException(v8::TryCatch* try_catch) {
|
| HandleScope handle_scope;
|
| +#if !defined(V8_SHARED) && defined(ENABLE_DEBUGGER_SUPPORT)
|
| bool enter_context = !Context::InContext();
|
| if (enter_context) utility_context_->Enter();
|
| +#endif // !V8_SHARED && ENABLE_DEBUGGER_SUPPORT
|
| v8::String::Utf8Value exception(try_catch->Exception());
|
| const char* exception_string = ToCString(exception);
|
| Handle<Message> message = try_catch->Message();
|
| @@ -562,7 +564,9 @@ void Shell::ReportException(v8::TryCatch* try_catch) {
|
| }
|
| }
|
| printf("\n");
|
| +#if !defined(V8_SHARED) && defined(ENABLE_DEBUGGER_SUPPORT)
|
| if (enter_context) utility_context_->Exit();
|
| +#endif // !V8_SHARED && ENABLE_DEBUGGER_SUPPORT
|
| }
|
|
|
|
|
|
|