mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1123211 - Handle uncaught promise rejections in the source editor;r=pbrosset
This commit is contained in:
parent
407966f9e8
commit
0955cedefd
@ -3,6 +3,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
const { Cu } = require("chrome");
|
||||
const cssAutoCompleter = require("devtools/sourceeditor/css-autocompleter");
|
||||
const { AutocompletePopup } = require("devtools/shared/autocomplete-popup");
|
||||
|
||||
@ -215,7 +216,7 @@ function autoComplete({ ed, cm }) {
|
||||
private.suggestionInsertedOnce = false;
|
||||
// This event is used in tests.
|
||||
ed.emit("after-suggest");
|
||||
});
|
||||
}).then(null, Cu.reportError);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user