mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1118804 - Handle uncaught promise rejections in the inspector;r=pbrosset
This commit is contained in:
parent
64250a3a9f
commit
821bab1d81
@ -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);
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user