Skip to content

Commit e80c3a6

Browse files
committed
🐛 Fix parse error of source map
1 parent ff677e8 commit e80c3a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sourcemap/SourceMapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class WatMapper implements SourceMapper {
6666
this.lineMapping = [];
6767
const lines = compileOutput.split('\n');
6868
for (let i = 0; i < lines.length; i++) {
69-
if (lines[i].match(/@/)) {
69+
if (lines[i].match(/^@ {/)) {
7070
let mapping: SourceLine = WatMapper.extractLineInfo(lines[i]);
7171
mapping.instructions = WatMapper.extractAddressInfo(lines[i + 1]);
7272
this.lineMapping.push(mapping);

0 commit comments

Comments
 (0)