Return correct slashes in stacktrace
This commit is contained in:
Родитель
510dfcf757
Коммит
9e21a32a6f
|
@ -116,7 +116,7 @@ export class SourceMapTransformer implements IDebugTransformer {
|
||||||
response.stackFrames.forEach(stackFrame => {
|
response.stackFrames.forEach(stackFrame => {
|
||||||
const mapped = this._sourceMaps.MapToSource(stackFrame.source.path, stackFrame.line, stackFrame.column);
|
const mapped = this._sourceMaps.MapToSource(stackFrame.source.path, stackFrame.line, stackFrame.column);
|
||||||
if (mapped) {
|
if (mapped) {
|
||||||
stackFrame.source.path = mapped.path;
|
stackFrame.source.path = utils.canonicalizeUrl(mapped.path);
|
||||||
stackFrame.source.name = path.basename(mapped.path);
|
stackFrame.source.name = path.basename(mapped.path);
|
||||||
stackFrame.line = mapped.line;
|
stackFrame.line = mapped.line;
|
||||||
stackFrame.column = mapped.column;
|
stackFrame.column = mapped.column;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче