Skip to content

Commit

Permalink
πŸ› Fix parse error of source map
Browse files Browse the repository at this point in the history
  • Loading branch information
tolauwae committed Jan 23, 2024
1 parent ff677e8 commit e80c3a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sourcemap/SourceMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class WatMapper implements SourceMapper {
this.lineMapping = [];
const lines = compileOutput.split('\n');
for (let i = 0; i < lines.length; i++) {
if (lines[i].match(/@/)) {
if (lines[i].match(/^@ {/)) {
let mapping: SourceLine = WatMapper.extractLineInfo(lines[i]);
mapping.instructions = WatMapper.extractAddressInfo(lines[i + 1]);
this.lineMapping.push(mapping);
Expand Down

0 comments on commit e80c3a6

Please sign in to comment.