Bug 1363588 - Retain ___class_name property for messages in the WebConsole server logger; r?bgrins
MozReview-Commit-ID: EqxmzxOHDT8
--- a/devtools/shared/webconsole/server-logger.js
+++ b/devtools/shared/webconsole/server-logger.js
@@ -470,25 +470,16 @@ function format(msg) {
if (concatString) {
rebuiltLogArray.push(concatString);
}
// Append the rest of arguments that don't have corresponding
// specifiers to the message logs.
msg.logs.unshift(...rebuiltLogArray);
- // Remove special ___class_name property that isn't supported
- // by the current implementation. This property represents object class
- // allowing custom rendering in the console panel.
- for (let log of msg.logs) {
- if (typeof log == "object") {
- delete log.___class_name;
- }
- }
-
return msg;
}
function parseBacktrace(backtrace) {
if (!backtrace) {
return null;
}