mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
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:
parent
3971522a79
commit
520f5c0614
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user