Bug 1118804 - Handle uncaught promise rejections in the inspector;r=pbrosset

This commit is contained in:
Eddy Bruël 2015-01-12 15:17:57 +01:00
parent 64250a3a9f
commit 821bab1d81

View File

@ -4,6 +4,8 @@
"use strict";
const { Cu } = require("chrome");
const promise = require("resource://gre/modules/Promise.jsm").Promise;
loader.lazyGetter(this, "EventEmitter", () => require("devtools/toolkit/event-emitter"));
loader.lazyGetter(this, "AutocompletePopup", () => require("devtools/shared/autocomplete-popup").AutocompletePopup);
@ -265,7 +267,7 @@ SelectorSearch.prototype = {
}
this.searchBox.classList.add("devtools-no-search-result");
return this.showSuggestions();
}).then(() => this.emit("processing-done"));
}).then(() => this.emit("processing-done"), Cu.reportError);
},
/**