| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 08948fcc3fde66856a2d8ad7bd100f6281462455..416e3b8a73df380595f26942225c560978cdfdac 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -1045,7 +1045,7 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) {
|
|
|
| // Notify debugger of exception.
|
| if (catchable_by_javascript) {
|
| - debugger_->OnException(exception_handle, report_exception);
|
| + debug()->OnException(exception_handle, report_exception);
|
| }
|
|
|
| // Generate the message if required.
|
| @@ -1332,7 +1332,7 @@ Handle<Context> Isolate::global_context() {
|
|
|
| Handle<Context> Isolate::GetCallingNativeContext() {
|
| JavaScriptFrameIterator it(this);
|
| - if (debug_->InDebugger()) {
|
| + if (debug_->in_debug_scope()) {
|
| while (!it.done()) {
|
| JavaScriptFrame* frame = it.frame();
|
| Context* context = Context::cast(frame->context());
|
| @@ -1528,7 +1528,6 @@ Isolate::Isolate()
|
|
|
| InitializeLoggingAndCounters();
|
| debug_ = new Debug(this);
|
| - debugger_ = new Debugger(this);
|
| }
|
|
|
|
|
| @@ -1738,8 +1737,6 @@ Isolate::~Isolate() {
|
| delete random_number_generator_;
|
| random_number_generator_ = NULL;
|
|
|
| - delete debugger_;
|
| - debugger_ = NULL;
|
| delete debug_;
|
| debug_ = NULL;
|
| }
|
|
|