Skip to content

Commit af5b1db

Browse files
committed
Bug 1531826 Part 3 - Convert source IDs in console message stack traces, r=lsmyth.
UltraBlame original commit: 5def261a4246475d3a7ba1911847fbd78ae790d1
1 parent be335f6 commit af5b1db

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

devtools/server/actors/webconsole.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,12 @@ WebConsoleActor.prototype =
17011701
delete result.innerID;
17021702
delete result.consoleID;
17031703

1704+
if (result.stacktrace) {
1705+
result.stacktrace = Array.map(result.stacktrace, (frame) => {
1706+
return { ...frame, sourceId: this.getActorIdForInternalSourceId(frame.sourceId) };
1707+
});
1708+
}
1709+
17041710
result.arguments = Array.map(message.arguments || [], (obj) => {
17051711
const dbgObj = this.makeDebuggeeValue(obj, useObjectGlobal);
17061712
return this.createValueGrip(dbgObj);

0 commit comments

Comments
 (0)