Bug 1531826 Part 3 - Convert source IDs in console message stack traces, r=lsmyth.

--HG--
extra : rebase_source : ab3baebb3d16d2d467cc1a574e27a0ea62fae2bb
This commit is contained in:
Brian Hackett 2019-03-04 06:41:37 -10:00
Родитель 02ef503dea
Коммит 194035443a
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -1701,6 +1701,12 @@ WebConsoleActor.prototype =
delete result.innerID; delete result.innerID;
delete result.consoleID; delete result.consoleID;
if (result.stacktrace) {
result.stacktrace = Array.map(result.stacktrace, (frame) => {
return { ...frame, sourceId: this.getActorIdForInternalSourceId(frame.sourceId) };
});
}
result.arguments = Array.map(message.arguments || [], (obj) => { result.arguments = Array.map(message.arguments || [], (obj) => {
const dbgObj = this.makeDebuggeeValue(obj, useObjectGlobal); const dbgObj = this.makeDebuggeeValue(obj, useObjectGlobal);
return this.createValueGrip(dbgObj); return this.createValueGrip(dbgObj);