Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 6b234bc2bd3c00035e9fb5ba3cdb0e08d526992c..8aa64cf93ee21cd187f829f3cc72e8bed9c133a5 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -9041,9 +9041,9 @@ bool debug::HasNonBlackboxedFrameOnStack(Isolate* v8_isolate) { |
i::HandleScope scope(isolate); |
for (i::StackTraceFrameIterator it(isolate); !it.done(); it.Advance()) { |
if (!it.is_javascript()) continue; |
- i::Handle<i::SharedFunctionInfo> shared( |
- it.javascript_frame()->function()->shared()); |
- if (!isolate->debug()->IsBlackboxed(shared)) return true; |
+ if (!isolate->debug()->IsFrameBlackboxed(it.javascript_frame())) { |
+ return true; |
+ } |
} |
return false; |
} |