Index: src/debug/debug-frames.cc |
diff --git a/src/debug/debug-frames.cc b/src/debug/debug-frames.cc |
index c4c288148c5c637d76011b30f5f4fc2f846c9248..ad54247417ddad2b36ca3b02bf578de783267f1f 100644 |
--- a/src/debug/debug-frames.cc |
+++ b/src/debug/debug-frames.cc |
@@ -206,7 +206,7 @@ int DebugFrameHelper::FindIndexedNonNativeFrame(JavaScriptFrameIterator* it, |
it->frame()->Summarize(&frames); |
for (int i = frames.length() - 1; i >= 0; i--) { |
// Omit functions from native and extension scripts. |
- if (!frames[i].function()->IsSubjectToDebugging()) continue; |
+ if (!frames[i].function()->shared()->IsSubjectToDebugging()) continue; |
if (++count == index) return i; |
} |
} |