Skip to content

Commit

Permalink
fix(parser): fixed a slip-up
Browse files Browse the repository at this point in the history
  • Loading branch information
KFlash committed Jun 23, 2019
1 parent 8de4f6d commit 7aab914
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ export function parseSource(source: string, options: Options | void, context: Co
start: { line: 1, column: 0 },
end: { line: parser.line, column: parser.column }
};

if (parser.sourceFile) {
node.loc.source = sourceFile;
}
}

return node;
Expand Down

0 comments on commit 7aab914

Please sign in to comment.