From 2c1ee5e54cc1388f793c3e286e0ed5268c06d55e Mon Sep 17 00:00:00 2001 From: Nicolas Chevobbe Date: Fri, 30 Apr 2021 11:36:02 +0000 Subject: [PATCH] Bug 1708625 - [devtools] Remove Promise.jsm usage in breadcrumb.js. r=jdescottes Differential Revision: https://phabricator.services.mozilla.com/D113911 --- devtools/client/inspector/breadcrumbs.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/devtools/client/inspector/breadcrumbs.js b/devtools/client/inspector/breadcrumbs.js index 6c72903e3d7d..afb4f33a1928 100644 --- a/devtools/client/inspector/breadcrumbs.js +++ b/devtools/client/inspector/breadcrumbs.js @@ -4,7 +4,6 @@ "use strict"; -const promise = require("promise"); const flags = require("devtools/shared/flags"); const { ELLIPSIS } = require("devtools/shared/l10n"); const EventEmitter = require("devtools/shared/event-emitter"); @@ -613,7 +612,7 @@ HTMLBreadcrumbs.prototype = { event.preventDefault(); event.stopPropagation(); - this.keyPromise = (this.keyPromise || promise.resolve(null)).then(() => { + this.keyPromise = (this.keyPromise || Promise.resolve(null)).then(() => { let currentnode; const isLeft = event.code === "ArrowLeft";