fix: sourceMap sometime error
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
9b69b1221b
commit
aee0457d9f
@ -103,7 +103,7 @@ export class MiaoScriptConsole implements Console {
|
||||
}
|
||||
}
|
||||
if (this.sourceMaps[fileName]) {
|
||||
var sourceMapping = this.sourceMaps[fileName].getSource(lineNumber, lineNumber);
|
||||
var sourceMapping = this.sourceMaps[fileName].getSource(lineNumber, 25, true);
|
||||
if (sourceMapping) {
|
||||
if (lineNumber != sourceMapping.mapping.sourceLine) {
|
||||
fileName = fileName.replace(".js", ".ts");
|
||||
|
Loading…
Reference in New Issue
Block a user