[WebAssembly] Inspector's DebuggerCallFrame should be aware of Wasm frames
[WebKit-https.git] / Source / JavaScriptCore / debugger / DebuggerCallFrame.cpp
index 015d19e..3258faa 100644 (file)
@@ -320,7 +320,7 @@ SourceID DebuggerCallFrame::sourceIDForCallFrame(CallFrame* callFrame)
     if (!callFrame)
         return noSourceID;
     CodeBlock* codeBlock = callFrame->codeBlock();
-    if (!codeBlock)
+    if (!codeBlock || callFrame->callee().isWasm())
         return noSourceID;
     return codeBlock->ownerExecutable()->sourceID();
 }