Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 3b730278dbfc607d1ce0f5c61073eee688009328..5920bfda8c4bb6484c1c06162db6e3f1ba4ccdc1 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -177,10 +177,7 @@ bool StackTraceFrameIterator::IsValidFrame(StackFrame* frame) const { |
if (frame->is_java_script()) { |
JavaScriptFrame* jsFrame = static_cast<JavaScriptFrame*>(frame); |
if (!jsFrame->function()->IsJSFunction()) return false; |
- Object* script = jsFrame->function()->shared()->script(); |
- // Don't show functions from native scripts to user. |
- return (script->IsScript() && |
- Script::TYPE_NATIVE != Script::cast(script)->type()); |
+ return jsFrame->function()->shared()->IsSubjectToDebugging(); |
} |
// apart from javascript, only wasm is valid |
return frame->is_wasm(); |