Bug 1732678 - [devtools] Remove usage of Promise.jsm in VariableView.jsm. r=bomsy

Differential Revision: https://phabricator.services.mozilla.com/D126666
This commit is contained in:
Nicolas Chevobbe 2021-09-28 10:13:58 +00:00
parent 3971522a79
commit 520f5c0614

View File

@ -17,7 +17,6 @@ const EventEmitter = require("devtools/shared/event-emitter");
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
const Services = require("Services");
const { getSourceNames } = require("devtools/client/shared/source-utils");
const promise = require("promise");
const { extend } = require("devtools/shared/extend");
const {
ViewHelpers,
@ -2896,7 +2895,7 @@ Variable.prototype = extend(Scope.prototype, {
*/
openNodeInInspector: function(event) {
if (!this.toolbox) {
return promise.reject(new Error("Toolbox not available"));
return Promise.reject(new Error("Toolbox not available"));
}
event && event.stopPropagation();