зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1012750 - defineLazyModuleGetter should log failing URL if there was an error loading, r=mak
This commit is contained in:
Родитель
1472623df0
Коммит
08c675f07b
|
@ -223,7 +223,12 @@ this.XPCOMUtils = {
|
|||
{
|
||||
this.defineLazyGetter(aObject, aName, function XPCU_moduleLambda() {
|
||||
var temp = {};
|
||||
Cu.import(aResource, temp);
|
||||
try {
|
||||
Cu.import(aResource, temp);
|
||||
} catch (ex) {
|
||||
Cu.reportError("Failed to load module " + aResource + " : " + ex);
|
||||
throw ex;
|
||||
}
|
||||
return temp[aSymbol || aName];
|
||||
});
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче