mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1129770 - Deprecated.jsm can log 'null 0 null' as part of it's stack trace. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D130558
This commit is contained in:
parent
495dc60933
commit
c2486c4847
@ -37,7 +37,9 @@ function stringifyCallstack(aStack) {
|
||||
let msg = "";
|
||||
// Get every frame in the callstack.
|
||||
while (frame) {
|
||||
msg += frame.filename + " " + frame.lineNumber + " " + frame.name + "\n";
|
||||
if (frame.filename || frame.lineNumber || frame.name) {
|
||||
msg += frame.filename + " " + frame.lineNumber + " " + frame.name + "\n";
|
||||
}
|
||||
frame = frame.caller;
|
||||
}
|
||||
return msg;
|
||||
|
Loading…
Reference in New Issue
Block a user