mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1134130 - Don't fail on log messages without a stack trace. r=dougt
This commit is contained in:
parent
22d6cb9a2e
commit
c84c23f188
@ -166,7 +166,8 @@ ProcessGlobal.prototype = {
|
||||
let args = message.arguments;
|
||||
let stackTrace = '';
|
||||
|
||||
if (message.level == 'assert' || message.level == 'error' || message.level == 'trace') {
|
||||
if (message.stacktrace &&
|
||||
(message.level == 'assert' || message.level == 'error' || message.level == 'trace')) {
|
||||
stackTrace = Array.map(message.stacktrace, formatStackFrame).join('\n');
|
||||
} else {
|
||||
stackTrace = formatStackFrame(message);
|
||||
|
Loading…
Reference in New Issue
Block a user