Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index ce7e05c557f7abdd77f3d16fae13f00fcd3435a3..db41e6fad531098eb0f9015a41d643e13f3ff702 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1324,7 +1324,7 @@ Handle<Context> Isolate::global_context() { |
Handle<Context> Isolate::GetCallingNativeContext() { |
JavaScriptFrameIterator it(this); |
- if (debug_->InDebugger()) { |
+ if (debug_->is_entered()) { |
while (!it.done()) { |
JavaScriptFrame* frame = it.frame(); |
Context* context = Context::cast(frame->context()); |