Bug 1495261 - Watch for exceptions being thrown while stringifying old exceptions, r=lsmyth.

--HG--
extra : rebase_source : 23eab39d87346fa93e458c5280b7c02321f29194
This commit is contained in:
Brian Hackett 2018-10-06 14:32:37 -10:00
Родитель 4ebe60371d
Коммит 5c7db5a769
1 изменённых файлов: 8 добавлений и 2 удалений

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

@ -707,8 +707,14 @@ function ProcessRequest(request) {
}
return { exception: "No handler for " + request.type };
} catch (e) {
RecordReplayControl.dump("ReplayDebugger Record/Replay Error: " + e + "\n");
return { exception: "" + e };
let msg;
try {
msg = "" + e;
} catch (ee) {
msg = "Unknown";
}
RecordReplayControl.dump("ReplayDebugger Record/Replay Error: " + msg + "\n");
return { exception: msg };
}
}