| Index: src/inspector/v8-stack-trace-impl.cc
|
| diff --git a/src/inspector/v8-stack-trace-impl.cc b/src/inspector/v8-stack-trace-impl.cc
|
| index ccf0fd9765cc4dd969684ef2a5f491fa380603a8..dddad36202accfe53a25bb0010aacfbd8a7112c5 100644
|
| --- a/src/inspector/v8-stack-trace-impl.cc
|
| +++ b/src/inspector/v8-stack-trace-impl.cc
|
| @@ -40,8 +40,10 @@ V8StackTraceImpl::Frame toFrame(v8::Local<v8::StackFrame> frame,
|
| int sourceColumn = frame->GetColumn() - 1;
|
| // TODO(clemensh): Figure out a way to do this translation only right before
|
| // sending the stack trace over wire.
|
| - wasmTranslation->TranslateWasmScriptLocationToProtocolLocation(
|
| - &scriptId, &sourceLineNumber, &sourceColumn);
|
| + if (frame->IsWasm()) {
|
| + wasmTranslation->TranslateWasmScriptLocationToProtocolLocation(
|
| + &scriptId, &sourceLineNumber, &sourceColumn);
|
| + }
|
| return V8StackTraceImpl::Frame(functionName, scriptId, sourceName,
|
| sourceLineNumber + 1, sourceColumn + 1);
|
| }
|
|
|