mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 719292 - Error: hud.jsterm is null in resource:///modules/HUDService.jsm:2074; r=msucan
This commit is contained in:
parent
e09959b687
commit
ca1fa6d6a7
@ -2067,7 +2067,16 @@ HUD_SERVICE.prototype =
|
||||
// Pipe the message to createMessageNode().
|
||||
let hud = HUDService.hudReferences[aHUDId];
|
||||
function formatResult(x) {
|
||||
return (typeof(x) == "string") ? x : hud.jsterm.formatResult(x);
|
||||
if (typeof(x) == "string") {
|
||||
return x;
|
||||
}
|
||||
if (hud.gcliterm) {
|
||||
return hud.gcliterm.formatResult(x);
|
||||
}
|
||||
if (hud.jsterm) {
|
||||
return hud.jsterm.formatResult(x);
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
let body = null;
|
||||
@ -7068,5 +7077,8 @@ GcliTerm.prototype = {
|
||||
},
|
||||
|
||||
clearOutput: JSTerm.prototype.clearOutput,
|
||||
};
|
||||
|
||||
formatResult: JSTerm.prototype.formatResult,
|
||||
getResultType: JSTerm.prototype.getResultType,
|
||||
formatString: JSTerm.prototype.formatString,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user