Skip to content

Commit

Permalink
fix: error when stepping in decompiled dwarf wasm
Browse files Browse the repository at this point in the history
Fixes #1819
  • Loading branch information
connor4312 committed Sep 26, 2023
1 parent 5c1d581 commit 7a23414
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/adapter/dwarf/wasmSymbolProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,10 @@ class WasmSymbols extends DecompiledWasmSymbols {
sourceUrl?: string,
mappedPosition?: IPosition,
): Promise<Range[]> {
if (sourceUrl === this.decompiledUrl) {
return [];
}

const thisLocation = {
codeOffset: position.base0.columnNumber - this.codeOffset,
inlineFrameIndex: position.base0.lineNumber,
Expand Down

0 comments on commit 7a23414

Please sign in to comment.